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

[ty] Respect the gradual guarantee when narrowing using `isinstance()` and `issubclass()`

#18900Merged
Comparing
alex/isinstance-gradual
(
1cd4937
) with
main
(
fd2cc37
)
CodSpeed Performance Gauge
0%
Archived
8

Benchmarks

8 total
large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
52.7 s52.5 s
small[tanjun]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
2 s2 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
3.1 s3.1 s
medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
8.7 s8.7 s
small[freqtrade]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
4.6 s4.6 s
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
32.1 s32.3 s
multithreaded[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
2.9 s3 s
small[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-2%
2.8 s2.9 s

Commits

Click on a commit to change the comparison range
Base
main
fd2cc37
+0.59%
[ty] Respect the gradual guarantee when narrowing using `isinstance()` and `issubclass()`
371c632
9 months ago
by AlexWaygood
-0.65%
even more extreme test
1cd4937
9 months ago
by AlexWaygood
© 2026 CodSpeed Technology
Home Terms Privacy Docs