[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

Guido van Rossum report at bugs.python.org
Sat May 29 17:09:42 EDT 2021


Guido van Rossum <guido at python.org> added the comment:

> What is/was the initial reason to not preserve the MRO for a TypedDict?

Hm, I can't say for sure. I believe it had something to do with TypedDict instances being instances of dict at runtime, but I can't actually reconstruct the reason. Maybe it's written up in PEP 589, but I suspect not (I skimmed and couldn't find it). If you ask on typing-sig maybe David Foster (who contributed the initial idea and implementation) remembers.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41249>
_______________________________________


More information about the Python-bugs-list mailing list