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 The Compiler, eric.smith, gvanrossum, kj, larry, levkivskyi
Date 2021-04-16.15:07:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hey Larry, it would seem that PEP 649 as currently specified would make it impossible to access annotations via the inspect module in cases where x.__annotations__ raises (because one of the annotations references an undefined variable).

I really think that we need *some* way of accessing partial annotations. Even just leaving the failing key out of __annotations__ (but keeping other keys if their annotation works) would be better than failing to return an __annotations__ dict at all.
Date User Action Args
2021-04-16 15:07:25gvanrossumsetrecipients: + gvanrossum, larry, eric.smith, The Compiler, levkivskyi, kj
2021-04-16 15:07:25gvanrossumsetmessageid: <>
2021-04-16 15:07:25gvanrossumlinkissue43463 messages
2021-04-16 15:07:25gvanrossumcreate