File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,16 @@ class cached_property(Generic[_T]):
20
20
@overload
21
21
def __get__ (self , instance : object , cls : Type [Any ] = ...) -> _T : ...
22
22
23
- class Promise : ...
23
+ # Promise is only subclassed by a proxy class defined in the lazy function
24
+ # so it makes sense for it to have all the methods available in that proxy class
25
+ class Promise :
26
+ def __init__ (self , args : Any , kw : Any ) -> None : ...
27
+ def __reduce__ (self ) -> Tuple [Any , Tuple [Any ]]: ...
28
+ def __lt__ (self , other : Any ) -> bool : ...
29
+ def __mod__ (self , rhs : Any ) -> str : ...
30
+ def __add__ (self , other : Any ) -> str : ...
31
+ def __radd__ (self , other : Any ) -> str : ...
32
+ def __deepcopy__ (self , memo : Any ): ...
24
33
25
34
_C = TypeVar ("_C" , bound = Callable )
26
35
You can’t perform that action at this time.
0 commit comments