@@ -20,7 +20,25 @@ 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
+ @classmethod
29
+ def __prepare_class__ (cls ) -> None : ...
30
+ @classmethod
31
+ def __promise__ (cls , method_name : str ) -> Callable : ...
32
+ def __text_cast (self ) -> str : ...
33
+ def __bytes_cast (self ) -> bytes : ...
34
+ def __bytes_cast_encoded (self ) -> bytes : ...
35
+ def __cast (self ) -> Union [bytes , str ]: ...
36
+ def __lt__ (self , other : Any ) -> bool : ...
37
+ def __hash__ (self ) -> int : ...
38
+ def __mod__ (self , rhs : Any ) -> str : ...
39
+ def __add__ (self , other : Any ) -> str : ...
40
+ def __radd__ (self , other : Any ) -> str : ...
41
+ def __deepcopy__ (self , memo : Any ): ...
24
42
25
43
_C = TypeVar ("_C" , bound = Callable )
26
44
0 commit comments