mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 03:36:41 +03:00
Update documentation
This commit is contained in:
parent
6c26643e92
commit
b433a730bc
|
@ -51,7 +51,7 @@ from .errors import UndefinedProviderError
|
||||||
from . import catalogs
|
from . import catalogs
|
||||||
catalog = catalogs
|
catalog = catalogs
|
||||||
|
|
||||||
VERSION = '1.14.3'
|
VERSION = '1.14.4'
|
||||||
"""Version number that follows semantic versioning.
|
"""Version number that follows semantic versioning.
|
||||||
|
|
||||||
:type: str
|
:type: str
|
||||||
|
|
|
@ -60,20 +60,6 @@ class Provider(object):
|
||||||
Tuple of overriding providers, if any.
|
Tuple of overriding providers, if any.
|
||||||
|
|
||||||
:type: tuple[:py:class:`Provider`] | None
|
:type: tuple[:py:class:`Provider`] | None
|
||||||
|
|
||||||
.. py:method:: __call__
|
|
||||||
|
|
||||||
Return provided instance.
|
|
||||||
|
|
||||||
Implementation of current method adds ``callable`` functionality for
|
|
||||||
providers API and it should be common for all provider's subclasses.
|
|
||||||
Also this method implements provider overriding logic that is also
|
|
||||||
common for all providers. Implementation of particular providing
|
|
||||||
strategy should be done in :py:meth:`Provider._provide` of
|
|
||||||
:py:class:`Provider` subclass.
|
|
||||||
|
|
||||||
:return: Provided instance
|
|
||||||
:rtype: object
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__IS_PROVIDER__ = True
|
__IS_PROVIDER__ = True
|
||||||
|
|
|
@ -11,6 +11,10 @@ Development version
|
||||||
-------------------
|
-------------------
|
||||||
- No features.
|
- No features.
|
||||||
|
|
||||||
|
1.14.4
|
||||||
|
------
|
||||||
|
- Update documentation.
|
||||||
|
|
||||||
1.14.3
|
1.14.3
|
||||||
------
|
------
|
||||||
- Optimize internals of providers.
|
- Optimize internals of providers.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user