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:
Jukka Lehtosalo
2017-01-17 13:55:31 +00:00
committed by GitHub
parent 511ff30f06
commit 734ad44a11

View File

@@ -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]