Skip to content

fix panic: Key Anon already exists with value ClassDef with fuzzed NamedTuple code #3354#4124

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

fix panic: Key Anon already exists with value ClassDef with fuzzed NamedTuple code #3354#4124
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3354

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #3354

Added a distinct binding key for invalid assignment targets, preventing collisions with synthesized functional NamedTuple bindings.

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 with fuzzed NamedTuple code

1 participant