mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Make MRO of UserDict.DictMixin consistent with Mapping (#837)
This fixes MRO conflicts produced by mypy when using multiple inheritance.
This commit is contained in:
@@ -14,7 +14,7 @@ class UserDict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
||||
class IterableUserDict(UserDict[_KT, _VT], Generic[_KT, _VT]):
|
||||
...
|
||||
|
||||
class DictMixin(Sized, Iterable[_KT], Container[_KT], Generic[_KT, _VT]):
|
||||
class DictMixin(Iterable[_KT], Container[_KT], Sized, Generic[_KT, _VT]):
|
||||
def has_key(self, key: _KT) -> bool: ...
|
||||
|
||||
# From typing.Mapping[_KT, _VT]
|
||||
|
||||
Reference in New Issue
Block a user