Skip to content

Fix PEP 695 type alias with mix of type args (PEP 696) - #18919

Merged
JukkaL merged 1 commit into
python:masterfrom
cdce8p:fix-696-type-alias
Apr 17, 2025
Merged

Fix PEP 695 type alias with mix of type args (PEP 696)#18919
JukkaL merged 1 commit into
python:masterfrom
cdce8p:fix-696-type-alias

Conversation

@cdce8p

@cdce8p cdce8p commented Apr 13, 2025

Copy link
Copy Markdown
Collaborator

Fix an issue where TypeVar defaults wouldn't be applied to PEP 695 type aliases.
Fixes #18921

@cdce8p cdce8p added topic-pep-696 TypeVar defaults topic-pep-695 Issues related to PEP 695 syntax bug mypy got something wrong and removed bug mypy got something wrong labels Apr 13, 2025
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@JukkaL
JukkaL merged commit 9a52273 into python:master Apr 17, 2025
@cdce8p
cdce8p deleted the fix-696-type-alias branch April 17, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-pep-695 Issues related to PEP 695 syntax topic-pep-696 TypeVar defaults

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typevar defaults not applied to new style type alias

2 participants