Skip to content

gh-155278: Avoid needlessly accessing ForwardRef.__forward_code__ in evaluate_forward_ref() - #155279

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
Viicos:gh-155278
Aug 7, 2026
Merged

gh-155278: Avoid needlessly accessing ForwardRef.__forward_code__ in evaluate_forward_ref()#155279
JelleZijlstra merged 2 commits into
python:mainfrom
Viicos:gh-155278

Conversation

@Viicos

@Viicos Viicos commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

See issue for details. No news entry necessary for this kind of change.

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. As this is purely a performance optimization, let's only apply it on main (3.16).

Comment thread Lib/typing.py Outdated
@JelleZijlstra
JelleZijlstra merged commit 5ffefdb into python:main Aug 7, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants