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 gvanrossum
Recipients gvanrossum, kj, mhils
Date 2021-08-16.20:22:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629145341.68.0.3146569871.issue44926@roundup.psfhosted.org>
In-reply-to
Content
I think it's fine for get_type_hints() to give up in some cases. It's not fine if it were to look in the wrong namespace (e.g. if the caller of get_type_hints() were to happen to have an unrelated class named "Foo" in its namespace, that should *not* be found if the type alias was defined in a different file).
History
Date User Action Args
2021-08-16 20:22:21gvanrossumsetrecipients: + gvanrossum, mhils, kj
2021-08-16 20:22:21gvanrossumsetmessageid: <1629145341.68.0.3146569871.issue44926@roundup.psfhosted.org>
2021-08-16 20:22:21gvanrossumlinkissue44926 messages
2021-08-16 20:22:21gvanrossumcreate