mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-17 23:34:13 +08:00
Misc stub fixes (#181)
This commit is contained in:
committed by
Guido van Rossum
parent
c21d8a41d5
commit
292447bd62
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user