Skip to content
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

Fix crash on malformed TypedDict in incremental mode #16115

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

ilevkivskyi
Copy link
Member

Fixes #15557

FWIW I simply copy the logic for handling malformed definitions from named tuples, that seems to be much more robust.

@github-actions
Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit 402c8ff into python:master Sep 15, 2023
@ilevkivskyi ilevkivskyi deleted the fix-incremental-td-crash branch September 15, 2023 17: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.

Crash for TypedDict with non-literal keys
2 participants