Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #17755

Fix is trivial, so not really waiting for review. Btw I found few other places where we do not normalize callables. TBH I already forgot when we actually need to normalize, but I don't want to just blanket add normalization, as it may be a relatively expensive function. If we will hit another similar crash, I will add more normalization accordingly (similar to what I did with kwargs unpacking).

Copy link
Contributor

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

@ilevkivskyi ilevkivskyi merged commit 9e2198f into python:master Mar 31, 2025
18 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-tvt-non-normal-call branch March 31, 2025 00:01
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.

Mypy crash when unpacking typevar tuples (not TypeVarTuple)
2 participants