mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 11:51:39 +03:00
Update Factory and Singleton specialization docs
This commit is contained in:
parent
c6b79a8052
commit
5cc5794f66
|
@ -181,7 +181,8 @@ Factory providers specialization
|
||||||
:py:class:`Factory` provider could be specialized for any kind of needs via
|
:py:class:`Factory` provider could be specialized for any kind of needs via
|
||||||
declaring its subclasses.
|
declaring its subclasses.
|
||||||
|
|
||||||
One of such features is a limitation to :py:class:`Factory` provided type:
|
One of such `builtin` features is a limitation to :py:class:`Factory` provided
|
||||||
|
type:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/providers/factory_provided_type.py
|
.. literalinclude:: ../../examples/providers/factory_provided_type.py
|
||||||
:language: python
|
:language: python
|
||||||
|
|
|
@ -76,7 +76,8 @@ Singleton providers specialization
|
||||||
:py:class:`Singleton` provider could be specialized for any kind of needs via
|
:py:class:`Singleton` provider could be specialized for any kind of needs via
|
||||||
declaring its subclasses.
|
declaring its subclasses.
|
||||||
|
|
||||||
One of such features is a limitation to :py:class:`Singleton` provided type:
|
One of such `builtin` features is a limitation to :py:class:`Singleton`
|
||||||
|
provided type:
|
||||||
|
|
||||||
.. literalinclude:: ../../examples/providers/singleton_provided_type.py
|
.. literalinclude:: ../../examples/providers/singleton_provided_type.py
|
||||||
:language: python
|
:language: python
|
||||||
|
|
Loading…
Reference in New Issue
Block a user