astral-sh
ruff
BlogDocsChangelog

[ty] Check method definitions on subclasses for Liskov violations

#21436
Comparing
alex/basic-liskov
(
c4b5edb
) with
main
(
192c37d
)
CodSpeed Performance Gauge
-10%
Regressions
4
Untouched
18
Skipped
30

Benchmarks

Skipped (30)

Failed

multithreaded[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
Regression
CodSpeed Performance Gauge
-10%
559.5 ms622.4 ms
medium[static-frame]
crates/ruff_benchmark/benches/ty_walltime.rs
Regression
CodSpeed Performance Gauge
-7%
15.3 s16.5 s
small[tanjun]
crates/ruff_benchmark/benches/ty_walltime.rs
Regression
CodSpeed Performance Gauge
-5%
2.3 s2.5 s
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Regression
CodSpeed Performance Gauge
-5%
1.1 s1.1 s

Passed

ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
CodSpeed Performance Gauge
+1%
70 ms69.6 ms
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
CodSpeed Performance Gauge
0%
65.7 ms65.4 ms
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
CodSpeed Performance Gauge
0%
66.9 ms66.7 ms
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
CodSpeed Performance Gauge
0%
69.7 ms69.6 ms
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
CodSpeed Performance Gauge
0%
76.2 ms76.2 ms
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
CodSpeed Performance Gauge
0%
135.2 ms135.3 ms
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
CodSpeed Performance Gauge
0%
69.5 ms69.6 ms
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
CodSpeed Performance Gauge
0%
93.7 ms94.1 ms
medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
0%
16.2 s16.3 s
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
CodSpeed Performance Gauge
-1%
6.3 ms6.3 ms
small[freqtrade]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
-1%
6.3 s6.4 s
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
CodSpeed Performance Gauge
-1%
444.7 ms450.2 ms
large[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
-1%
20.5 s20.7 s
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
CodSpeed Performance Gauge
-2%
238.7 ms243 ms
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
CodSpeed Performance Gauge
-2%
1 s1 s
large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
-2%
54.9 s56 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
-2%
2.9 s3 s
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
-4%
46.8 s48.5 s

Commits

Click on a commit to change the comparison range
Base
main
192c37d
-13.56%
snapshots and docs
da0cdfc
3 days ago
by AlexWaygood
+5.39%
add submodule doc-comment
7f918d7
3 days ago
by AlexWaygood
-0.85%
Merge branch 'main' into alex/basic-liskov
e4b2174
2 days ago
by AlexWaygood
-1.27%
Merge branch 'main' into alex/basic-liskov
a5f0983
2 days ago
by AlexWaygood
+0.19%
Apply suggestions from code review Co-authored-by: Carl Meyer <carl@astral.sh>
c4b5edb
2 days ago
by AlexWaygood
© 2025 CodSpeed Technology
Home Terms Privacy Docs