ruff/crates/ty_python_semantic/resources/mdtest/narrow/conditionals
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
..
boolean.md [ty] Reachability constraints (#18621) 2025-06-17 09:24:28 +02:00
elif_else.md [ty] Improve disjointness inference for NominalInstanceTypes and SubclassOfTypes (#18864) 2025-06-24 20:27:37 +00:00
eq.md [ty] Expansion of enums into unions of literals (#19382) 2025-07-21 19:37:55 +02:00
in.md
is.md [ty] Expansion of enums into unions of literals (#19382) 2025-07-21 19:37:55 +02:00
is_not.md [ty] Expansion of enums into unions of literals (#19382) 2025-07-21 19:37:55 +02:00
nested.md [ty] fix lookup order of class variables before they are defined (#19743) 2025-08-04 20:21:28 -07:00
not.md