ruff/crates/ty_python_semantic/resources/mdtest/scopes
Shunsuke Shibayama 64bcc8db2f
[ty] fix lookup order of class variables before they are defined (#19743)
## 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`.
2025-08-04 20:21:28 -07:00
..
builtin.md [ty] Track different uses of legacy typevars, including context when rendering typevars (#19604) 2025-08-01 12:20:32 -04:00
eager.md [ty] improve lazy scope place lookup (#19321) 2025-07-25 07:11:11 +00:00
global-constants.md [ty] Add support for global __debug__ constant (#18540) 2025-06-10 06:48:59 +00:00
global.md [ty] fix lookup order of class variables before they are defined (#19743) 2025-08-04 20:21:28 -07:00
moduletype_attrs.md [ty] Consistent use of American english (in rules) (#19488) 2025-07-22 16:10:38 +02:00
nonlocal.md [ty] improve lazy scope place lookup (#19321) 2025-07-25 07:11:11 +00:00
unbound.md