Files
astral-ruff/crates/ty_python_core
Charlie Marsh 5f040fab4b [ty] Expand support for narrowing within walruses (#24968)
## Summary

Support narrowing for a few more already-supported sites, but in the
context of a walrus, as in:

```python
def f(t: tuple[int, int] | tuple[None, None]):
    if (first := t[0]) is not None:
        reveal_type(first)  # int
        reveal_type(t)      # tuple[int, int]
    else:
        reveal_type(first)  # None
        reveal_type(t)      # tuple[None, None]
```
2026-05-01 23:09:36 -04:00
..