Misc stub fixes (#181)

This commit is contained in:
Jukka Lehtosalo
2016-05-05 00:54:57 +01:00
committed by Guido van Rossum
parent c21d8a41d5
commit 292447bd62
10 changed files with 52 additions and 33 deletions

View File

@@ -13,11 +13,11 @@ _VT = TypeVar('_VT')
class ReferenceType(Generic[_T]):
# TODO rest of members
def __call__(self) -> Optional[_T]:
...
def __init__(o: _T, callback: Callable[[ReferenceType[_T]],
Any] = ...) -> None: ...
def __call__(self) -> Optional[_T]: ...
def ref(o: _T, callback: Callable[[ReferenceType[_T]],
Any] = ...) -> ReferenceType[_T]: ...
ref = ReferenceType
# TODO callback
def proxy(object: _T) -> _T: ...