Third-party stubs: import from collections.abc where possible (#7637)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-04-16 14:52:57 +01:00
1 parent ee09d9eb19
commit 653f2c6ba4
146 files changed
+268 -156

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import IdentityFunction
from collections.abc import Iterator, Sequence
from collections.abc import Callable, Iterator, MutableMapping, Sequence
from contextlib import AbstractContextManager
from typing import Any, Callable, Generic, MutableMapping, TypeVar, overload
from typing import Any, Generic, TypeVar, overload
__all__ = ("Cache", "FIFOCache", "LFUCache", "LRUCache", "MRUCache", "RRCache", "TLRUCache", "TTLCache", "cached", "cachedmethod")
__version__: str
+2 -1
View File
@@ -1,5 +1,6 @@
from _typeshed import IdentityFunction
from typing import Callable, Sequence, TypeVar
from collections.abc import Callable, Sequence
from typing import TypeVar
__all__ = ("fifo_cache", "lfu_cache", "lru_cache", "mru_cache", "rr_cache", "ttl_cache")
_T = TypeVar("_T")
+1 -1
View File
@@ -1,4 +1,4 @@
from typing import Hashable
from collections.abc import Hashable
__all__ = ("hashkey", "typedkey")