Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

[ty] Reachability analysis for `isinstance(…)` branches

#19503Merged
Comparing
david/isinstance-inference
(
653ec2a
) with
main
(
b605c3e
)
CodSpeed Performance Gauge
-1%
Archived
8

Benchmarks

8 total
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
28.9 s28.9 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
2.4 s2.4 s
small[freqtrade]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
4 s4.1 s
small[tanjun]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
1.7 s1.7 s
multithreaded[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
281.4 ms284.8 ms
large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
43 s43.1 s
medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
7.1 s7.2 s
small[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
2.3 s2.3 s

Commits

Click on a commit to change the comparison range
Base
main
b605c3e
-0.4%
[ty] Type inference for isinstance(…) calls
746382f
7 months ago
by sharkdp
-0.62%
Handle intersections recursively
5615b10
7 months ago
by sharkdp
+0.35%
Add inference for isinstance(SomeClass, type)
653ec2a
7 months ago
by sharkdp
© 2026 CodSpeed Technology
Home Terms Privacy Docs