Skip to content

Commit fd7632c

Browse files
add ReferenceType.__call__ to stubs
1 parent 05513a8 commit fd7632c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-data/unit/lib-stub/weakref.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ _T = TypeVar("_T")
99
class ReferenceType(Generic[_T]): # "weakref"
1010
__callback__: Callable[[Self], Any]
1111
def __new__(cls, o: _T, callback: Callable[[Self], Any] | None = ..., /) -> Self: ...
12+
def __call__(self) -> _T | None: ...
1213

1314
ref = ReferenceType
1415

0 commit comments

Comments
 (0)