Skip to content

Fix incremental crash on TypedDict in method#16364

Merged
JukkaL merged 1 commit intopython:masterfrom
ilevkivskyi:fix-inc-td-crash
Oct 30, 2023
Merged

Fix incremental crash on TypedDict in method#16364
JukkaL merged 1 commit intopython:masterfrom
ilevkivskyi:fix-inc-td-crash

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

@ilevkivskyi ilevkivskyi commented Oct 29, 2023

Fixes #16336

All the story with @-names is a mess. FWIW I just copied the logic from named tuples, where it works. So although it is a mess, it will be now be a consistent mess, with full parity between NamedTuple and TypedDict.

@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. ✅

Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@JukkaL JukkaL merged commit b8c748a into python:master Oct 30, 2023
@ilevkivskyi ilevkivskyi deleted the fix-inc-td-crash branch October 30, 2023 19:19
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 with TypedDict defined in method (cache moment)

2 participants