KEMBAR78
fix: prevent crash on dataclass with PEP695 TypeVarTuple on py3.13 by sterliakov · Pull Request #19565 · python/mypy · GitHub
Skip to content

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!

@github-actions
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