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, emma_smith, glyph, gvanrossum, joernheissler, mental, ryansobol
Date 2022-01-11.01:39:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
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, emma_smith, joernheissler, BTaskaya, mental, ryansobol
2022-01-11 01:39:46gvanrossumsetmessageid: <[email protected]>
2022-01-11 01:39:46gvanrossumlinkissue41987 messages
2022-01-11 01:39:46gvanrossumcreate