Skip to content

fix panic: Key Anon already exists with value ClassDef w/ NamedTuple and with #4177#4197

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4177
Open

fix panic: Key Anon already exists with value ClassDef w/ NamedTuple and with #4177#4197
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4177

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4177

Added a role-specific Key::ContextValue to prevent collisions with synthesized NamedTuple class bindings in malformed with statements, and updated with binding handling.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic: Key Anon already exists with value ClassDef w/ NamedTuple and with

1 participant