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

[ty] Fix Top materialization to respect TypeVar bounds and ignore defaults

#24024
Comparing
alex/fix-top-materialize
(
cf7843f
) with
main
(
fcef46c
)
CodSpeed Performance Gauge
-4%
Regression
1
Untouched
20
Skipped
36

Benchmarks

36 total
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.8 s*
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
73.1 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
5 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
71.9 s*
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
23.5 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
63.9 s*
formatter[numpy/globals.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
246.4 µs*
formatter[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
1.9 ms*
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
336.2 µs*
linter/default-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
213.1 µs*
formatter[large/dataset.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
9.4 ms*
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
969.6 µs*
linter/default-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
1 ms*
formatter[pydantic/types.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
3.6 ms*
linter/default-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
415.6 µs*
linter/default-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
2.2 ms*
linter/all-with-preview-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
850.4 µs*
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
5.2 ms*
formatter[unicode/pypinyin.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
682.9 µs*
lexer[pydantic/types.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
517.6 µs*
lexer[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
234.1 µs*
lexer[large/dataset.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
1.2 ms*
linter/all-with-preview-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
5.3 ms*
linter/all-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules
Skipped
19.5 ms*
lexer[numpy/globals.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
30.8 µs*

Commits

Click on a commit to change the comparison range
Base
main
fcef46c
-4.39%
more improvements
cf7843f
2 days ago
by AlexWaygood
© 2026 CodSpeed Technology
Home Terms Privacy Docs