KEMBAR78
Fix crash on unpacking self in NamedTuple by ilevkivskyi · Pull Request #17351 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #17010

Fix is trivial: replicate the TypeVar handling logic in the caller.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2024

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

@ilevkivskyi ilevkivskyi merged commit 09e6a2b into python:master Jun 9, 2024
@ilevkivskyi ilevkivskyi deleted the fix-unpack-self branch June 9, 2024 20:04
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.

unpacking assignment with self annotated as typing.Self in typing.NamedTuple subclass method causes mypy internal error

2 participants