Skip to content

Fix crash on malformed TypedDict in incremental mode#16115

Merged
hauntsaninja merged 1 commit intopython:masterfrom
ilevkivskyi:fix-incremental-td-crash
Sep 15, 2023
Merged

Fix crash on malformed TypedDict in incremental mode#16115
hauntsaninja merged 1 commit intopython:masterfrom
ilevkivskyi:fix-incremental-td-crash

Conversation

@ilevkivskyi
Copy link
Copy Markdown
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
Copy Markdown
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