Files
ruff/crates/ty_python_semantic/resources/mdtest/narrow/conditionals
Ibraheem Ahmed 25023cc0ea [ty] Use declared variable types as bidirectional type context (#20796)
## Summary

Use the declared type of variables as type context for the RHS of assignment expressions, e.g.,
```py
x: list[int | str]
x = [1]
reveal_type(x)  # revealed: list[int | str]
```
2025-10-16 15:40:39 -04:00
..
2025-05-03 19:49:15 +02:00