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 levkivskyi
Recipients Ben.Darnell, gvanrossum, levkivskyi
Date 2018-09-21.20:51:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537563075.53.0.956365154283.issue34700@psf.upfronthosting.co.za>
In-reply-to
Content
I think there is also a fourth option: add a flag to `get_type_hints()` that will guard evaluation of forward references, as proposed in https://github.com/python/typing/issues/508. If the evaluation of a "forward reference" raises an error, then we keep it unevaluated (i.e. a string).
History
Date User Action Args
2018-09-21 20:51:15levkivskyisetrecipients: + levkivskyi, gvanrossum, Ben.Darnell
2018-09-21 20:51:15levkivskyisetmessageid: <1537563075.53.0.956365154283.issue34700@psf.upfronthosting.co.za>
2018-09-21 20:51:15levkivskyilinkissue34700 messages
2018-09-21 20:51:15levkivskyicreate