8000 gh-125618: Make FORWARDREF format succeed more often by JelleZijlstra · Pull Request #132818 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-125618: Make FORWARDREF format succeed more often #132818

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

Merged
merged 11 commits into from
May 4, 2025
Prev Previous commit
Next Next commit
fix
  • Loading branch information
JelleZijlstra committed Apr 23, 2025
commit d095e2cf480946c7f01dc1bd1e7a848015cf3fc6
2 changes: 1 addition & 1 deletion Lib/annotationlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def _build_closure(annotate, owner, is_class, stringifier_dict, *,
owner=owner,
globals=annotate.__globals__,
is_class=is_class,
stringifier_dict=globals,
stringifier_dict=stringifier_dict,
)
stringifier_dict.stringifiers.append(fwdref)
new_cell = types.CellType(fwdref)
Expand Down
0