Repository navigation
Conversation
>>> from collections import OrderedDict
>>> class Foo(type(OrderedDict({'foo': 'bar'}).keys())): ...
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: type 'odict_keys' is not an acceptable base typeThe C implementation that's actually used for
This was considered in python/mypy#12091, but rejected due to zero true positives and several false-positives (with the |
This comment has been minimized.
This comment has been minimized.
1 similar comment
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
I indentified that these types can be subclassed:
Right now our stubtest does not check
@finaldeclaration on regular types. Maybe we should?