mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-25 06:13:01 +00:00
## Summary This is a follow-up to #19321. If we try to access a class variable before it is defined, the variable is looked up in the global scope, rather than in any enclosing scopes. Closes https://github.com/astral-sh/ty/issues/875. ## Test Plan New tests in `narrow/conditionals/nested.md`. |
||
|---|---|---|
| .. | ||
| boolean.md | ||
| elif_else.md | ||
| eq.md | ||
| in.md | ||
| is.md | ||
| is_not.md | ||
| nested.md | ||
| not.md | ||