ruff/crates/ty_python_semantic/resources/mdtest/exception
Shunsuke Shibayama ef564094a9
[ty] support del statement and deletion of except handler names (#18593)
## Summary

This PR closes https://github.com/astral-sh/ty/issues/238.

Since `DefinitionState::Deleted` was introduced in #18041, support for
the `del` statement (and deletion of except handler names) is
straightforward.

However, it is difficult to determine whether references to attributes
or subscripts are unresolved after they are deleted. This PR only
invalidates narrowing by assignment if the attribute or subscript is
deleted.

## Test Plan

`mdtest/del.md` is added.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-06-12 07:44:42 -07:00
..
basic.md [ty] support del statement and deletion of except handler names (#18593) 2025-06-12 07:44:42 -07:00
control_flow.md Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00
except_star.md [ty] Raise invalid-exception-caught even when exception is not captured (#18202) 2025-05-19 18:13:34 -04:00
invalid_syntax.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00