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,11 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import MutableMapping
|
||||
from typing import Generic, TypeVar
|
||||
from typing import TypeVar
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
class CaseInsensitiveDict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
class CaseInsensitiveDict(MutableMapping[_KT, _VT]):
|
||||
def __init__(self, other: Incomplete | None = None, **kwargs) -> None: ...
|
||||
def __contains__(self, item): ...
|
||||
def __delitem__(self, key) -> None: ...
|
||||
@@ -19,7 +19,7 @@ class CaseInsensitiveDict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
def __eq__(self, other): ...
|
||||
def copy(self): ...
|
||||
|
||||
class CaseInsensitiveWithAliasDict(CaseInsensitiveDict[_KT, _VT], Generic[_KT, _VT]):
|
||||
class CaseInsensitiveWithAliasDict(CaseInsensitiveDict[_KT, _VT]):
|
||||
def __init__(self, other: Incomplete | None = None, **kwargs) -> None: ...
|
||||
def aliases(self): ...
|
||||
def __setitem__(self, key, value) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user