mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import types
|
||||
from _weakrefset import WeakSet as WeakSet
|
||||
from typing import Any, Callable, Dict, Generic, Iterable, Iterator, List, Mapping, MutableMapping, Tuple, Type, TypeVar, overload
|
||||
from typing import Any, Callable, Generic, Iterable, Iterator, Mapping, MutableMapping, Tuple, Type, TypeVar, overload
|
||||
|
||||
from _weakref import (
|
||||
CallableProxyType as CallableProxyType,
|
||||
@@ -41,7 +41,7 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
|
||||
def values(self) -> Iterator[_VT]: ... # type: ignore
|
||||
def items(self) -> Iterator[Tuple[_KT, _VT]]: ... # type: ignore
|
||||
def itervaluerefs(self) -> Iterator[KeyedRef[_KT, _VT]]: ...
|
||||
def valuerefs(self) -> List[KeyedRef[_KT, _VT]]: ...
|
||||
def valuerefs(self) -> list[KeyedRef[_KT, _VT]]: ...
|
||||
|
||||
class KeyedRef(ref[_T], Generic[_KT, _T]):
|
||||
key: _KT
|
||||
@@ -66,12 +66,12 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
|
||||
def keys(self) -> Iterator[_KT]: ... # type: ignore
|
||||
def values(self) -> Iterator[_VT]: ... # type: ignore
|
||||
def items(self) -> Iterator[Tuple[_KT, _VT]]: ... # type: ignore
|
||||
def keyrefs(self) -> List[ref[_KT]]: ...
|
||||
def keyrefs(self) -> list[ref[_KT]]: ...
|
||||
|
||||
class finalize:
|
||||
def __init__(self, __obj: object, __func: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...
|
||||
def __call__(self, _: Any = ...) -> Any | None: ...
|
||||
def detach(self) -> Tuple[Any, Any, Tuple[Any, ...], Dict[str, Any]] | None: ...
|
||||
def peek(self) -> Tuple[Any, Any, Tuple[Any, ...], Dict[str, Any]] | None: ...
|
||||
def detach(self) -> Tuple[Any, Any, Tuple[Any, ...], dict[str, Any]] | None: ...
|
||||
def peek(self) -> Tuple[Any, Any, Tuple[Any, ...], dict[str, Any]] | None: ...
|
||||
alive: bool
|
||||
atexit: bool
|
||||
|
||||
Reference in New Issue
Block a user