mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Update weakref.pyi
ReferenceType __init__ method missing self
This commit is contained in:
committed by
Łukasz Langa
parent
79c3a40a3a
commit
562ab18792
@@ -13,7 +13,7 @@ _VT = TypeVar('_VT')
|
||||
|
||||
class ReferenceType(Generic[_T]):
|
||||
# TODO rest of members
|
||||
def __init__(o: _T, callback: Callable[[ReferenceType[_T]],
|
||||
def __init__(self, o: _T, callback: Callable[[ReferenceType[_T]],
|
||||
Any] = ...) -> None: ...
|
||||
def __call__(self) -> Optional[_T]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user