ruff/crates/ty_python_semantic/resources/mdtest/narrow/conditionals
Shunsuke Shibayama 342b2665db
[ty] basic narrowing on attribute and subscript expressions (#17643)
## Summary

This PR closes astral-sh/ty#164.

This PR introduces a basic type narrowing mechanism for
attribute/subscript expressions.
Member accesses, int literal subscripts, string literal subscripts are
supported (same as mypy and pyright).

## Test Plan

New test cases are added to `mdtest/narrow/complex_target.md`.

---------

Co-authored-by: David Peter <mail@david-peter.de>
2025-06-17 11:07:46 +02:00
..
boolean.md [ty] Reachability constraints (#18621) 2025-06-17 09:24:28 +02:00
elif_else.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
eq.md Update class literal display to use `<class 'Foo'>` style (#17889) 2025-05-06 20:11:25 -04:00
in.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
is.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
is_not.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
nested.md [ty] basic narrowing on attribute and subscript expressions (#17643) 2025-06-17 11:07:46 +02:00
not.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00