mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-08 22:33:15 +03:00
Add stub for ExternalDependency
This commit is contained in:
parent
df9036b0dc
commit
562f974343
|
@ -51,6 +51,10 @@ class Dependency(Provider, Generic[T]):
|
|||
def instance_of(self) -> Type[T]: ...
|
||||
def provided_by(self, provider: Provider) -> OverridingContext: ...
|
||||
|
||||
|
||||
class ExternalDependency(Dependency): ...
|
||||
|
||||
|
||||
class Callable(Provider, Generic[T]):
|
||||
def __init__(self, provides: _Callable[..., T], *args: Injection, **kwargs: Injection) -> None: ...
|
||||
def __call__(self, *args: Injection, **kwargs: Injection) -> T: ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user