Update weakref.pyi

ReferenceType __init__ method missing self
This commit is contained in:
Jason Fried
2016-12-27 13:04:05 -08:00
committed by Łukasz Langa
parent 79c3a40a3a
commit 562ab18792

View File

@@ -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]: ...