Fix dependency provider stub issue with required init arg

This commit is contained in:
Roman Mogylatov 2020-09-06 13:35:21 -04:00
parent 06bc0f1bac
commit 94d500b0e2

View File

@ -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: ...