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

Nils Kattenbeck report at bugs.python.org
Sat May 29 06:52:53 EDT 2021


Nils Kattenbeck <nilskemail at gmail.com> added the comment:

What is/was the initial reason to not preserve the MRO for a TypedDict?
The only thing which came to my mind would be instantiation performance but as annotations are not evaluated by default and on the right-hide side of assignment most people will use dict literals I am not sure if this is still relevant. Otherwise it might even be simpler to just preserve the original bases in TypedDict but please correct me if I overlooked something

----------
nosy: +Nils Kattenbeck

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


More information about the Python-bugs-list mailing list