Remove many redundant inheritances from Generic[] (#10933)

This commit is contained in:
Alex Waygood
2023-10-26 19:07:20 +01:00
committed by GitHub
parent 5dbdd59c9b
commit a08d4c8d2e
30 changed files with 81 additions and 81 deletions

View File

@@ -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: ...