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