mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-23 05:56:19 +03:00
Fix stubs
This commit is contained in:
parent
8b7327c2c8
commit
2ec833f142
|
@ -32,11 +32,13 @@ class DeclarativeContainer(Container):
|
||||||
|
|
||||||
|
|
||||||
C = TypeVar('C', bound=DeclarativeContainer)
|
C = TypeVar('C', bound=DeclarativeContainer)
|
||||||
|
C_Overriding = TypeVar('C_Overriding', bound=DeclarativeContainer)
|
||||||
|
|
||||||
|
|
||||||
def override(container: Type[C]) -> _Callable[[Type[C]], Type[C]]: ...
|
def override(container: Type[C]) -> _Callable[[Type[C_Overriding]], Type[C_Overriding]]: ...
|
||||||
|
|
||||||
|
|
||||||
def copy(container: Type[C]) -> _Callable[[Type[C]], Type[C]]: ...
|
def copy(container: Type[C]) -> _Callable[[Type[C_Overriding]], Type[C_Overriding]]: ...
|
||||||
|
|
||||||
|
|
||||||
def is_container(instance: Any) -> bool: ...
|
def is_container(instance: Any) -> bool: ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user