astral-sh
ruff
BlogDocsChangelog

[ty] Homogeneous and mixed tuples

#18600Merged
Comparing
dcreager/tuple-spec
(
e5aa429
) with
main
(
d926628
)
CodSpeed Performance Gauge
+4%
Improvements
1
Untouched
5

Benchmarks

Improved

medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+4%
9 s8.7 s

Passed

large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+4%
48.3 s46.7 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+2%
3.1 s3 s
small[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+2%
2.8 s2.8 s
small[freqtrade]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+2%
4.6 s4.5 s
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+1%
32.6 s32.3 s

Commits

Click on a commit to change the comparison range
Base
main
d926628
-0.08%
use variable tuples
0a84630
4 months ago
by dcreager
-6.24%
Merge branch 'main' into dcreager/tuple-spec * main: [`pylint`] De-emphasize `__hash__ = Parent.__hash__` (`PLW1641`) (#18613) [`flake8-pyi`] Avoid syntax error in the case of starred and keyword arguments (`PYI059`) (#18611) [ty] Add support for global __debug__ constant (#18540) [`ruff`] Preserve parentheses around `deque` in fix for `unnecessary-empty-iterable-within-deque-call` (`RUF037`) (#18598) [`refurb`] Parenthesize lambda and ternary expressions in iter (`FURB122`, `FURB142`) (#18592)
3f71700
4 months ago
by dcreager
-7.76%
mdlint
a4755e0
4 months ago
by dcreager
+0.06%
remove fwomp!!!
b69a00c
4 months ago
by dcreager
+0.65%
don't expand variable-length tuples during overload resolution
14e225a
4 months ago
by dcreager
-0.17%
fix tests
9a50239
4 months ago
by dcreager
+0.05%
todo: nominal instance when instantiating tuple; include suffix when indexing
2bad8f2
4 months ago
by dcreager
+14.31%
regen
2c0ed94
4 months ago
by dcreager
-0.3%
index into suffix
7a059d7
4 months ago
by dcreager
-1.27%
clippy
45cd117
4 months ago
by dcreager
+2.65%
Merge branch 'main' into dcreager/tuple-spec * main: (21 commits) [`flake8-logging`] Avoid false positive for `exc_info=True` outside `logger.exception` (`LOG014`) (#18737) [`flake8-pie`] Small docs fix to `PIE794` (#18829) [`pylint`] Ignore __init__.py files in (PLC0414) (#18400) Avoid generating diagnostics with per-file ignores (#18801) [`flake8-simplify`] Fix false negatives for shadowed bindings (`SIM910`, `SIM911`) (#18794) [ty] Fix panics when pulling types for `ClassVar` or `Final` parameterized with >1 argument (#18824) [`pylint`] add fix safety section (`PLR1714`) (#18415) [Perflint] Small docs improvement to `PERF401` (#18786) [`pylint`] Avoid flattening nested `min`/`max` when outer call has single argument (`PLW3301`) (#16885) [`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`) (#18233) [ty] Use `HashTable` in `PlaceTable` (#18819) docs: Correct collections-named-tuple example to use PascalCase assignment (#16884) [ty] ecosystem-analyzer workflow (#18719) [ty] Add support for `@staticmethod`s (#18809) unnecessary_dict_kwargs doc - a note on type checking benefits (#18666) [`flake8-pytest-style`] Mark autofix for `PT001` and `PT023` as unsafe if there's comments in the decorator (#18792) [ty] Surface matched overload diagnostic directly (#18452) [ty] Report when a dataclass contains more than one `KW_ONLY` field (#18731) [`flake8-pie`] Add fix safety section to `PIE794` (#18802) [`pycodestyle`] Add fix safety section to `W291` and `W293` (#18800) ...
18d7e88
4 months ago
by dcreager
+2.16%
Merge branch 'main' into dcreager/tuple-spec * main: Handle parenthesized arguments in `remove_argument` (#18805) Unify helpers modules (#18835) Normalize some docs sections (#18831) [`flake8_pyi`] Fix `PYI041`'s fix causing TypeError with `None | None | ...` (#18637)
e5aa429
4 months ago
by dcreager
© 2025 CodSpeed Technology
Home Terms Privacy Docs