[issue44969] Subclassing of annotated types does not always work
Serhiy Storchaka
report at bugs.python.org
Sat Aug 21 03:47:25 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I think that __mro_entries__() for annotated types should return the result of __mro_entries__() for the original type if it has __mro_entries__. But details can be complicated, especially if user-defined generic types are involved.
Alternatively, __build_class__ can call __mro_entries__() repeatedly for the result of __mro_entries__(). I do not know what is better.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44969>
_______________________________________
More information about the Python-bugs-list
mailing list