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 BTaskaya, ethan smith, glyph, gvanrossum, joernheissler, mental, ryansobol
Date 2022-01-11.01:39:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641865186.89.0.164493701854.issue41987@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the bisection. It's not surprising that that's the culprit, and in other situations that's the right thing to do. I'm not sure how to address this without breaking other stuff -- maybe leave the ForwardRef if evaluating it doesn't work? But that's likely to have other subtle side effects -- we still want simple typos (or other reasons why a reference is legitimately broken) to go unchecked. Maybe singledispatch can catch the error and fall back on looking at bare __annotations__?
History
Date User Action Args
2022-01-11 01:39:46gvanrossumsetrecipients: + gvanrossum, glyph, ethan smith, joernheissler, BTaskaya, mental, ryansobol
2022-01-11 01:39:46gvanrossumsetmessageid: <1641865186.89.0.164493701854.issue41987@roundup.psfhosted.org>
2022-01-11 01:39:46gvanrossumlinkissue41987 messages
2022-01-11 01:39:46gvanrossumcreate