Skip to content

Conversation

@DavidCEllis
Copy link
Contributor

@DavidCEllis DavidCEllis commented Aug 13, 2025

This resolves #137706 making Annotated[undefined, ''] partially resolvable under Format.FORWARDREF

I hope I put the additional test in a reasonable place. It's a large file!

truthy output was interpreting annotationlib _Stringifier instances as unpacked TypeVarTuples
@JelleZijlstra
Copy link
Member

Could you add a NEWS entry?

@JelleZijlstra JelleZijlstra added the needs backport to 3.14 bugs and security fixes label Sep 5, 2025
@JelleZijlstra JelleZijlstra enabled auto-merge (squash) September 5, 2025 21:18
@JelleZijlstra JelleZijlstra merged commit 7e652f4 into python:main Sep 6, 2025
85 of 87 checks passed
@miss-islington-app
Copy link

Thanks @DavidCEllis for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 6, 2025
…e` instead of truthy (pythonGH-137712)

(cherry picked from commit 7e652f4)

Co-authored-by: David Ellis <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 6, 2025

GH-138574 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Sep 6, 2025
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
JelleZijlstra pushed a commit that referenced this pull request Oct 8, 2025
…ue` instead of truthy (GH-137712) (#138574)

gh-137706: make typing._is_unpacked_typevartuple check for `True` instead of truthy (GH-137712)
(cherry picked from commit 7e652f4)

Co-authored-by: David Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Annotated with forward references does not partially evaluate

2 participants