Skip to content

fix: prevent crash on dataclass with PEP695 TypeVarTuple on py3.13 #19565

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 2 commits into from
Aug 2, 2025

Conversation

sterliakov
Copy link
Collaborator

Fixes #19559.

Replaces ad-hoc Instance creation with regular fill_typevars.

Huge thanks to @A5rocks for the pointer!

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

github-actions bot commented Aug 1, 2025

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

@ilevkivskyi ilevkivskyi merged commit 45ee5a3 into python:master Aug 2, 2025
20 checks passed
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.

Generic dataclass with TypeVarTuple crashes Mypy
3 participants