This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Prometheus3375
Recipients Prometheus3375
Date 2021-01-05.11:40:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609846850.9.0.929067149865.issue42829@roundup.psfhosted.org>
In-reply-to
Content
>
This is because get_type_hints looks only at mro of the class. Its namespace must be included too as locals
<

I'll correct myself. get_type_hints() looks at all entites of mro of a class. If globals are not defined, globals of an entity module are used. But if locals are not defined, then no action is taken. Actually, class namespace must be used as locals in that case.

This is also supported by the case when a class and its module have classes with the same name. See same_classes.py for an example.
History
Date User Action Args
2021-01-05 11:40:50Prometheus3375setrecipients: + Prometheus3375
2021-01-05 11:40:50Prometheus3375setmessageid: <1609846850.9.0.929067149865.issue42829@roundup.psfhosted.org>
2021-01-05 11:40:50Prometheus3375linkissue42829 messages
2021-01-05 11:40:50Prometheus3375create