mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05: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`.