Files
ruff/crates/ty_python_semantic/resources
Alex Waygood af886b06c9 [ty] Allow if type(x) is Y narrowing for types other than class-literal types (#22729)
## Summary

Fixes https://github.com/astral-sh/ty/issues/2565.

This PR adds support for `if type(x) is Y` narrowing where `Y` is a
subclass-of type, type-alias type, or typevar type.

## Test Plan

mdtests
2026-01-20 08:23:00 +00:00
..
2026-01-10 14:00:00 +01:00
2025-05-03 19:49:15 +02:00

Markdown files within the mdtest/ subdirectory are tests of type inference and type checking; executed by the tests/mdtest.rs integration test.

See crates/ty_test/README.md for documentation of this test format.