mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-27 02:16:54 +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`. |
||
|---|---|---|
| .. | ||
| builtin.md | ||
| eager.md | ||
| global-constants.md | ||
| global.md | ||
| moduletype_attrs.md | ||
| nonlocal.md | ||
| unbound.md | ||