mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Fixed type arguments missing from generic types (#5042)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -76,7 +76,7 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
|
||||
|
||||
class KeyedRef(ref[_T], Generic[_KT, _T]):
|
||||
key: _KT
|
||||
def __new__(type, ob: _T, callback: Callable[[_T], Any], key: _KT) -> KeyedRef: ...
|
||||
def __new__(type, ob: _T, callback: Callable[[_T], Any], key: _KT) -> KeyedRef[_KT, _T]: ...
|
||||
def __init__(self, ob: _T, callback: Callable[[_T], Any], key: _KT) -> None: ...
|
||||
|
||||
class WeakKeyDictionary(MutableMapping[_KT, _VT]):
|
||||
@@ -111,9 +111,9 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
class finalize:
|
||||
def __init__(self, __obj: _S, __func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
|
||||
def __call__(self, _: Any = ...) -> Optional[_T]: ...
|
||||
def detach(self) -> Optional[Tuple[_S, _T, Tuple[Any, ...], Dict[str, Any]]]: ...
|
||||
def peek(self) -> Optional[Tuple[_S, _T, Tuple[Any, ...], Dict[str, Any]]]: ...
|
||||
def __init__(self, __obj: object, __func: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...
|
||||
def __call__(self, _: Any = ...) -> Optional[Any]: ...
|
||||
def detach(self) -> Optional[Tuple[Any, Any, Tuple[Any, ...], Dict[str, Any]]]: ...
|
||||
def peek(self) -> Optional[Tuple[Any, Any, Tuple[Any, ...], Dict[str, Any]]]: ...
|
||||
alive: bool
|
||||
atexit: bool
|
||||
|
||||
Reference in New Issue
Block a user