mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
## 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
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.