ruff/crates/ty_python_semantic/resources/mdtest/narrow
Alex Waygood 5bf5f3682a
[ty] Add tests for else branches of hasattr() narrowing (#18067)
## Summary

This addresses @sharkdp's post-merge review in
https://github.com/astral-sh/ruff/pull/18053#discussion_r2086190617

## Test Plan

`cargo test -p ty_python_semantic`
2025-05-13 09:57:53 -04:00
..
conditionals Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00
assert.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
bool-call.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
boolean.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
hasattr.md [ty] Add tests for else branches of hasattr() narrowing (#18067) 2025-05-13 09:57:53 -04:00
isinstance.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
issubclass.md Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00
match.md [ty] Understand classes that inherit from subscripted Protocol[] as generic (#17832) 2025-05-09 17:39:15 +01:00
post_if_statement.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
truthiness.md Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00
type.md Update class literal display to use <class 'Foo'> style (#17889) 2025-05-06 20:11:25 -04:00
while.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00