Skip to content

gh-119180: Improvements to ForwardRef.evaluate - #122210

Merged
JelleZijlstra merged 3 commits into
python:mainfrom
JelleZijlstra:pep649-tweaks
Aug 11, 2024
Merged

gh-119180: Improvements to ForwardRef.evaluate#122210
JelleZijlstra merged 3 commits into
python:mainfrom
JelleZijlstra:pep649-tweaks

Conversation

@JelleZijlstra

@JelleZijlstraJelleZijlstra commented Jul 24, 2024

Copy link
Copy Markdown
Member

Noticed some issues while writing documentation for this method.

Noticed some issues while writing documentation for this method.
Comment threadLib/annotationlib.py
return value
if owner is None:
owner = self.__owner__
if type_params is None and owner is None:

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This check felt unnecessarily strict; many ForwardRefs can be evaluated correctly without worrying about type params.

@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) August 11, 2024 23:21
@JelleZijlstra
JelleZijlstra merged commit 016f4b5 into python:mainAug 11, 2024
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
Noticed some issues while writing documentation for this method.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@JelleZijlstra