mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-04-19 00:22:08 +03:00
Fix dependency provider stub issue with required init arg
This commit is contained in:
parent
06bc0f1bac
commit
94d500b0e2
|
@ -59,7 +59,7 @@ class Delegate(Provider):
|
|||
|
||||
|
||||
class Dependency(Provider, Generic[T]):
|
||||
def __init__(self, instance_of: Type[T]) -> None: ...
|
||||
def __init__(self, instance_of: Type[T] = object) -> None: ...
|
||||
def __call__(self, *args: Injection, **kwargs: Injection) -> T: ...
|
||||
@property
|
||||
def provided(self) -> ProvidedInstance: ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user