mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-24 18:48:46 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
from typing import Hashable
|
||||
from collections.abc import Hashable
|
||||
|
||||
__all__ = ("hashkey", "typedkey")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user