@@ -84,6 +84,7 @@ class Provider(Generic[T]):
84
84
85
85
class Object (Provider [T ]):
86
86
def __init__ (self , provides : Optional [T ] = None ) -> None : ...
87
+ @property
87
88
def provides (self ) -> Optional [T ]: ...
88
89
def set_provides (self , provides : Optional [T ]) -> Object : ...
89
90
@@ -144,7 +145,7 @@ class DependenciesContainer(Object):
144
145
class Callable (Provider [T ]):
145
146
def __init__ (self , provides : Optional [_Callable [..., T ]] = None , * args : Injection , ** kwargs : Injection ) -> None : ...
146
147
@property
147
- def provides (self ) -> Optional [T ]: ...
148
+ def provides (self ) -> Optional [_Callable [..., T ] ]: ...
148
149
def set_provides (self , provides : Optional [_Callable [..., T ]]) -> Callable [T ]: ...
149
150
@property
150
151
def args (self ) -> Tuple [Injection ]: ...
@@ -249,9 +250,9 @@ class Factory(Provider[T]):
249
250
provided_type : Optional [Type ]
250
251
def __init__ (self , provides : Optional [_Callable [..., T ]] = None , * args : Injection , ** kwargs : Injection ) -> None : ...
251
252
@property
252
- def cls (self ) -> T : ...
253
+ def cls (self ) -> Type [ T ] : ...
253
254
@property
254
- def provides (self ) -> T : ...
255
+ def provides (self ) -> Optional [ _Callable [..., T ]] : ...
255
256
def set_provides (self , provides : Optional [_Callable [..., T ]]) -> Factory [T ]: ...
256
257
@property
257
258
def args (self ) -> Tuple [Injection ]: ...
@@ -300,9 +301,9 @@ class BaseSingleton(Provider[T]):
300
301
provided_type = Optional [Type ]
301
302
def __init__ (self , provides : Optional [_Callable [..., T ]] = None , * args : Injection , ** kwargs : Injection ) -> None : ...
302
303
@property
303
- def cls (self ) -> T : ...
304
+ def cls (self ) -> Type [ T ] : ...
304
305
@property
305
- def provides (self ) -> T : ...
306
+ def provides (self ) -> Optional [ _Callable [..., T ]] : ...
306
307
def set_provides (self , provides : Optional [_Callable [..., T ]]) -> BaseSingleton [T ]: ...
307
308
@property
308
309
def args (self ) -> Tuple [Injection ]: ...
0 commit comments