mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 21:46:17 +03:00
Fix mypy stub of the `DeclarativeContainer
to specify the
__init__
` interface
This commit is contained in:
parent
64a38a6020
commit
9e6b52aad4
|
@ -11,6 +11,7 @@ Development version
|
|||
-------------------
|
||||
- Update documentation and rework examples for: ``Singleton``, ``Callable``, ``Coroutine``,
|
||||
``Object``, ``List``, ``Configuration``, ``Selector`` providers.
|
||||
- Fix mypy stub of the ``DeclarativeContainer`` to specify the ``__init__`` interface.
|
||||
|
||||
3.34.0
|
||||
------
|
||||
|
|
|
@ -24,6 +24,7 @@ class DynamicContainer(Container): ...
|
|||
class DeclarativeContainer(Container):
|
||||
cls_providers: ClassVar[Dict[str, Provider]]
|
||||
inherited_providers: ClassVar[Dict[str, Provider]]
|
||||
def __init__(self, **overriding_providers: Provider) -> None: ...
|
||||
|
||||
|
||||
def override(container: Container) -> _Callable[[Container], Container]: ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user