mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Remove many redundant inheritances from Generic[] (#10933)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from _typeshed import IdentityFunction, Unused
|
||||
from collections.abc import Callable, Iterator, MutableMapping, Sequence
|
||||
from contextlib import AbstractContextManager
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from typing import Any, TypeVar, overload
|
||||
|
||||
__all__ = ("Cache", "FIFOCache", "LFUCache", "LRUCache", "MRUCache", "RRCache", "TLRUCache", "TTLCache", "cached", "cachedmethod")
|
||||
__version__: str
|
||||
@@ -10,7 +10,7 @@ _KT = TypeVar("_KT")
|
||||
_VT = TypeVar("_VT")
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class Cache(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
class Cache(MutableMapping[_KT, _VT]):
|
||||
@overload
|
||||
def __init__(self, maxsize: float, getsizeof: Callable[[_VT], float]) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user