Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-138151: Fix annotationlib handling of multiple nonlocals#138164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
JelleZijlstra commented Aug 26, 2025 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
b1027d4 into python:mainUh oh!
There was an error while loading. Please reload this page.
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…thonGH-138164) (cherry picked from commit b1027d4) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
GH-140949 is a backport of this pull request to the 3.14 branch. |
bedevere-bot commented Nov 3, 2025
|
Thanks to python/cpython#138164 (included in 3.14.1), Python is now able to preserve references when building the forward ref object, and so calling `_eval_type()` on the individual annotations works as expected.
ref.evaluate()not working for generics as local variables #138151