Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #19960

Fix is trivial, we can't use the "assertion" before type checking phase. I also fix missing line/column for union types. I am surprised this didn't cause problems before.

cc @JukkaL

Copy link
Contributor

github-actions bot commented Oct 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 053c054 into python:master Oct 1, 2025
20 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-undef-tvt-base-crash branch October 1, 2025 12:08
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.

Crash upon unpacking undefined name during subclassing
2 participants