fix panic: Key Anon already exists with value ClassDef w/ NamedTuple and assert #4447 - #4456
fix panic: Key Anon already exists with value ClassDef w/ NamedTuple and assert #4447#4456asukaminato0721 wants to merge 1 commit into
Conversation
|
This pull request has been imported. If you are a Meta employee, you can view this in D114829883. (Because this pull request was imported automatically, there will not be any future comments.) |
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
|
The anon binding was there for catching type errors in the test expression. Can you verify that an assert test w/ a type error still gets flagged? |
yes, because pyrefly/pyrefly/lib/alt/solve.rs Lines 2468 to 2469 in 39ec293 |
yangdanny97
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
|
This pull request has been merged in f7e444a. |
Summary
Fixes #4447
Removed redundant anonymous binding for assert conditions, preventing collision with synthesized NamedTuple bindings.
Test Plan
add test