mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:07 +00:00
## Summary Reported in: https://github.com/astral-sh/ruff/pull/19795#issuecomment-3161981945 If a root expression is reassigned, narrowing on the member should be invalidated, but there was an oversight in the current implementation. This PR fixes that, and also removes some unnecessary handling. ## Test Plan New tests cases in `narrow/conditionals/nested.md`. |
||
|---|---|---|
| .. | ||
| boolean.md | ||
| elif_else.md | ||
| eq.md | ||
| in.md | ||
| is.md | ||
| is_not.md | ||
| nested.md | ||
| not.md | ||