mirror of https://github.com/astral-sh/ruff
## Summary Infer `Literal[True]` for `isinstance(x, C)` calls when `x: T` and `T` has a bound `B` that satisfies the `isinstance` check against `C`. Similar for constrained typevars. closes https://github.com/astral-sh/ty/issues/1895 ## Test Plan * New Markdown tests * Verified the the example in the linked ticket checks without errors |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| build.rs | ||
| mdtest.py | ||
| mdtest.py.lock | ||