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

Branches performance

Pull requests

[ty] Remove unnecessary Salsa interning#23972
last run
8 minutes ago
[ty] Remove unnecessary Salsa interning
16 minutes ago
bc21633
alex/less-intern
CodSpeed Performance Gauge
0%
[ty] Add fast path for unreachable class subtype checks#23971
last run
3 hours ago
[ty] Add fast path to `check_class_pair` for early MRO rejection Before iterating the full (possibly specialized) MRO with `when_any` (which doesn't short-circuit on `never()` results), first do a cheap check: iterate the unspecialized MRO comparing only class literals. If the target's class literal isn't found and there are no dynamic bases, return `never()` immediately. This avoids expensive specialization checks and constraint-set operations for the common case where the target class is not in the source's MRO. https://claude.ai/code/session_014Cx1fZCq5GWfHsnxdx8nVL
3 hours ago
98eed37
claude/fast-path-class-relations-hdW1n
CodSpeed Performance Gauge
-6%
[ty] Fix Top materialization to respect TypeVar bounds and ignore defaults When computing `Top[Foo]` for an unparameterized generic class, TypeVar bounds were ignored (materializing to `object` instead of the bound) and TypeVar defaults were used instead of the widest possible type. Two fixes applied: 1. In `Specialization::materialize_impl`, cap materialized types by the TypeVar's upper bound when materializing in the widening direction. 2. In `Specialization::materialize_impl`, detect when a TypeVar's value matches its default and replace with `Unknown` for proper widening. 3. In `ClassLiteral::top_materialization`, use upper bounds directly for covariant/bivariant TypeVars via new `upper_bound_specialization`. https://claude.ai/code/session_017dAXrsVcmMYhtL4eTCfPUf
5 hours ago
ce9034e
claude/fix-typevar-annotations-BfKAQ
CodSpeed Performance Gauge
-8%
[ty] Fixup examples in `invalid-key` docs#23968
last run
5 hours ago
update generated files
5 hours ago
24d27ec
bhaveshklaviyo:patch-1
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs