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

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

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

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")

View File

@@ -1,4 +1,4 @@
from typing import Hashable
from collections.abc import Hashable
__all__ = ("hashkey", "typedkey")