@@ -84,6 +84,7 @@ class Provider(Generic[T]):
8484
8585class Object (Provider [T ]):
8686 def __init__ (self , provides : Optional [T ] = None ) -> None : ...
87+ @property
8788 def provides (self ) -> Optional [T ]: ...
8889 def set_provides (self , provides : Optional [T ]) -> Object : ...
8990
@@ -144,7 +145,7 @@ class DependenciesContainer(Object):
144145class Callable (Provider [T ]):
145146 def __init__ (self , provides : Optional [_Callable [..., T ]] = None , * args : Injection , ** kwargs : Injection ) -> None : ...
146147 @property
147- def provides (self ) -> Optional [T ]: ...
148+ def provides (self ) -> Optional [_Callable [..., T ] ]: ...
148149 def set_provides (self , provides : Optional [_Callable [..., T ]]) -> Callable [T ]: ...
149150 @property
150151 def args (self ) -> Tuple [Injection ]: ...
@@ -249,9 +250,9 @@ class Factory(Provider[T]):
249250 provided_type : Optional [Type ]
250251 def __init__ (self , provides : Optional [_Callable [..., T ]] = None , * args : Injection , ** kwargs : Injection ) -> None : ...
251252 @property
252- def cls (self ) -> T : ...
253+ def cls (self ) -> Type [ T ] : ...
253254 @property
254- def provides (self ) -> T : ...
255+ def provides (self ) -> Optional [ _Callable [..., T ]] : ...
255256 def set_provides (self , provides : Optional [_Callable [..., T ]]) -> Factory [T ]: ...
256257 @property
257258 def args (self ) -> Tuple [Injection ]: ...
@@ -300,9 +301,9 @@ class BaseSingleton(Provider[T]):
300301 provided_type = Optional [Type ]
301302 def __init__ (self , provides : Optional [_Callable [..., T ]] = None , * args : Injection , ** kwargs : Injection ) -> None : ...
302303 @property
303- def cls (self ) -> T : ...
304+ def cls (self ) -> Type [ T ] : ...
304305 @property
305- def provides (self ) -> T : ...
306+ def provides (self ) -> Optional [ _Callable [..., T ]] : ...
306307 def set_provides (self , provides : Optional [_Callable [..., T ]]) -> BaseSingleton [T ]: ...
307308 @property
308309 def args (self ) -> Tuple [Injection ]: ...
0 commit comments