We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d5cd1 commit 7dd623bCopy full SHA for 7dd623b
django-stubs/utils/functional.pyi
@@ -20,7 +20,16 @@ class cached_property(Generic[_T]):
20
@overload
21
def __get__(self, instance: object, cls: Type[Any] = ...) -> _T: ...
22
23
-class Promise: ...
+# 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): ...
33
34
_C = TypeVar("_C", bound=Callable)
35
0 commit comments