mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-26 19:43:58 +03:00
Fix declarative container mypy stub
This commit is contained in:
parent
5306b27c48
commit
098ecb4eec
|
@ -10,6 +10,7 @@ follows `Semantic versioning`_
|
||||||
Develop
|
Develop
|
||||||
-------
|
-------
|
||||||
- Refactor "password hashing" example.
|
- Refactor "password hashing" example.
|
||||||
|
- Fix declarative container mypy stub to ``__init__`` to accept not only providers.
|
||||||
|
|
||||||
3.40.0
|
3.40.0
|
||||||
------
|
------
|
||||||
|
|
|
@ -24,7 +24,7 @@ class DynamicContainer(Container): ...
|
||||||
class DeclarativeContainer(Container):
|
class DeclarativeContainer(Container):
|
||||||
cls_providers: ClassVar[Dict[str, Provider]]
|
cls_providers: ClassVar[Dict[str, Provider]]
|
||||||
inherited_providers: ClassVar[Dict[str, Provider]]
|
inherited_providers: ClassVar[Dict[str, Provider]]
|
||||||
def __init__(self, **overriding_providers: Provider) -> None: ...
|
def __init__(self, **overriding_providers: Union[Provider, Any]) -> None: ...
|
||||||
|
|
||||||
|
|
||||||
def override(container: Container) -> _Callable[[Container], Container]: ...
|
def override(container: Container) -> _Callable[[Container], Container]: ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user