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:18:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609845512.57.0.0433631135188.issue42829@roundup.psfhosted.org>
In-reply-to
Content
If a class X has nested class Y and class X has annotation Y AFTER the definition of Y, get_type_hints(X) throws NameError if import from future annotations is present.

This is because get_type_hints looks only at mro of the class. Its namespace must be included too as locals.
History
Date User Action Args
2021-01-05 11:18:32Prometheus3375setrecipients: + Prometheus3375
2021-01-05 11:18:32Prometheus3375setmessageid: <1609845512.57.0.0433631135188.issue42829@roundup.psfhosted.org>
2021-01-05 11:18:32Prometheus3375linkissue42829 messages
2021-01-05 11:18:32Prometheus3375create