astral-sh
ruff
BlogDocsChangelog

[ty] improve "Did you mean?" suggestion selection algorithm

#21808Closed
Comparing
mtshiba:improve-edit-distance
(
e553bcf
) with
main
(
3deb7e1
)
CodSpeed Performance Gauge
-12%
Regressions
2
Untouched
11
Skipped
30
Archived
9

Benchmarks

Skipped (30)

Failed

ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Regression
CodSpeed Performance Gauge
-8%
67.3 ms72.9 ms
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Regression
CodSpeed Performance Gauge
-5%
448.7 ms474.4 ms

Passed

ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
CodSpeed Performance Gauge
0%
125.6 ms126 ms
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
CodSpeed Performance Gauge
0%
6.9 ms6.9 ms
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
CodSpeed Performance Gauge
0%
137.2 ms137.7 ms
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
CodSpeed Performance Gauge
0%
85 ms85.4 ms
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
CodSpeed Performance Gauge
-1%
1.1 s1.1 s
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
CodSpeed Performance Gauge
-1%
65.9 ms66.3 ms
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
CodSpeed Performance Gauge
-1%
67.4 ms67.8 ms
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
CodSpeed Performance Gauge
-1%
71.2 ms71.6 ms
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
CodSpeed Performance Gauge
-1%
67.1 ms67.6 ms
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
CodSpeed Performance Gauge
-1%
1.4 s1.4 s
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
CodSpeed Performance Gauge
-1%
255.2 ms258.3 ms

Commits

Click on a commit to change the comparison range
Base
main
3deb7e1
-0.29%
[ty] "Did you mean?" suggestions on typos for stdlib imports (with improved edit distance algorithm) Co-Authored-By: Alex Waygood <Alex.Waygood@Gmail.com>
8c4c3c3
1 month ago
by mtshiba
+0.36%
update snapshots
3c60658
1 month ago
by mtshiba
-0.54%
filter by `wrong_name` length
a1cc3db
1 month ago
by mtshiba
+0.55%
focus only on improving "did_you_mean"
f8d4142
1 month ago
by mtshiba
-12.22%
experiment: unresolved attribute suggestion
e553bcf
1 month ago
by mtshiba
© 2026 CodSpeed Technology
Home Terms Privacy Docs