Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
> If deque does not fully support the MutableSequence interface, > should not it be un-regitered as MutableSequence? You could unregister it, but for such a minor variance, it isn't worth it. We're not unregistering sets and frozenset from Set even though there are minor variances in the operators. The ABCs are quite limited in what they do. The underlying machinery is mostly about determining whether a method is present or not. Concrete classes are free to override, extend or raise NotImplemented. For example, a Counter is still a mapping even though fromkeys() raises NotImplemented and update() has different semantics than Mapping. Jelle has already adapted TypeShed to match the concrete class, so no actual user issue remains. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41409> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com