mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-20 04:29:47 +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`. |
||
|---|---|---|
| .. | ||
| conditionals | ||
| assert.md | ||
| assignment.md | ||
| bool-call.md | ||
| boolean.md | ||
| complex_target.md | ||
| hasattr.md | ||
| isinstance.md | ||
| issubclass.md | ||
| match.md | ||
| post_if_statement.md | ||
| truthiness.md | ||
| type.md | ||
| type_guards.md | ||
| while.md | ||