astral-sh
ruff
BlogDocsChangelog

Branches performance

Pull requests

[ty] Fix stack overflow with recursive type aliases containing tuple …#22543
last run
3 hours ago
prek
3 hours ago
b1867d8
claude/fix-issue-2470-n8CLn
CodSpeed Performance Gauge
0%
[ty] Fix false positive for bounded type parameters with NewType#22542
last run
4 hours ago
[ty] Fix false positive for bounded type parameters in Self type checking When calling a method on an instance of a generic class with bounded type parameters (e.g., `C[T: K]` where `K` is a NewType), ty was incorrectly reporting: "Argument type `C[K]` does not satisfy upper bound `C[T@C]` of type variable `Self`" The issue was introduced by PR #22105, which moved the catch-all case for NewType assignments that falls back to the concrete base type. This case was placed before the TypeVar handling cases, so when checking `K <: T@C` (where K is a NewType and T@C is a TypeVar with upper bound K): 1. The NewType fallback matched first 2. It delegated to `int` (K's concrete base type) 3. Then checked `int <: T@C`, which checks if `int` satisfies bound `K` 4. But `int` is not assignable to `K` (NewTypes are distinct from their bases) The fix moves the NewType fallback case after the TypeVar cases, so TypeVar handling takes precedence. Fixes https://github.com/astral-sh/ty/issues/2467
5 hours ago
81d286a
claude/fix-issue-2467-NNS0l
CodSpeed Performance Gauge
0%
use type context from augmented assignment dunder calls
8 hours ago
27ac08c
ibraheem/augmented-assignment-tcx
CodSpeed Performance Gauge
0%
[ty] Support 'dangling' type(...) constructors
11 hours ago
56b1d6f
charlie/dyn-expression
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs