We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReferenceType.__call__
1 parent 05513a8 commit fd7632cCopy full SHA for fd7632c
test-data/unit/lib-stub/weakref.pyi
@@ -9,6 +9,7 @@ _T = TypeVar("_T")
9
class ReferenceType(Generic[_T]): # "weakref"
10
__callback__: Callable[[Self], Any]
11
def __new__(cls, o: _T, callback: Callable[[Self], Any] | None = ..., /) -> Self: ...
12
+ def __call__(self) -> _T | None: ...
13
14
ref = ReferenceType
15
0 commit comments