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 <1537720544.07.0.956365154283.issue34776@psf.upfronthosting.co.za>
In-reply-to
Content
[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:

https://gist.github.com/1st1/37fdd3cc84cd65b9af3471b935b722df
History
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: <1537720544.07.0.956365154283.issue34776@psf.upfronthosting.co.za>
2018-09-23 16:35:43eric.smithlinkissue34776 messages
2018-09-23 16:35:43eric.smithcreate