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 eric.smith
Recipients drhagen, eric.smith, gvanrossum, ivan, lukasz.langa, yselivanov
Date 2018-09-23.16:35:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
[Adding to nosy people who were on the original email]

Copying (part of) my response from the email thread:

These work:
print(get_type_hints(Bar.__init__, globals()))
print(get_type_hints(Bar.__init__, Bar.__module__))

But I agree that maybe doing something with dataclasses to address this would be good. Especially as the first one requires being in the same module as Foo.

See this for Yury's self-described "hack-ish fix we can use" until we do something better:
Date User Action Args
2018-09-23 16:35:44eric.smithsetrecipients: + eric.smith, gvanrossum, ivan, lukasz.langa, yselivanov, drhagen
2018-09-23 16:35:44eric.smithsetmessageid: <>
2018-09-23 16:35:43eric.smithlinkissue34776 messages
2018-09-23 16:35:43eric.smithcreate