Skip to content

Conversation

@tannguyencse19
Copy link

Summary

Updated the flow-merge logic so names that are present in all flows (even if only via attribute “narrows”) are treated as defined after a loop

fix #1378
fix #1397

Test Plan

cargo test -p pyrefly test_attribute_assignment_to_imported_singleton_in_method
cargo test -p pyrefly test_walrus_reuse_name_in_if_condition

@meta-cla meta-cla bot added the cla signed label Dec 26, 2025
@tannguyencse19 tannguyencse19 changed the title fix/issue-1378-1397-final fix: unbound-name after assignment to singleton attribute ; unexpected unbound-name error on second walrus conditional assignment for same variable Dec 26, 2025
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.

unexpected unbound-name error on second walrus conditional assignment for same variable unbound-name after assignment to singleton attribute

1 participant