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

[ty] Disallow `Final` in function parameter/return-type annotations

#19480Merged
Comparing
david/disallow-final-in-parameters
(
5a96cfc
) with
main
(
9d98a66
)
CodSpeed Performance Gauge
0%
Archived
8

Benchmarks

8 total
large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
42.6 s42.2 s
multithreaded[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
286.7 ms285.9 ms
small[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
2.3 s2.3 s
small[tanjun]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
1.7 s1.7 s
medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
7.1 s7.1 s
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
0%
28.7 s28.7 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
0%
4 s4 s

Commits

Click on a commit to change the comparison range
Base
main
9d98a66
+0.43%
Emit errors for return type annotations as well
5a96cfc
7 months ago
by sharkdp
© 2026 CodSpeed Technology
Home Terms Privacy Docs