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

Performance History

Latest Results

[ty] Narrow `isinstance` against intersections containing invalid members When the `classinfo` argument to `isinstance()`/`issubclass()` is an intersection, ty intersected the subject with each positive member. If any member yielded no constraint -- e.g. a parametrized generic alias such as `type[list[int]]`, which raises `TypeError` at runtime and is not a valid isinstance target -- narrowing was aborted for the entire intersection via `?`, leaving the subject un-narrowed. Skip such members instead and narrow using the remaining valid ones; narrowing on a subset of the intersection is still sound. Adds an mdtest covering `Intersection[type[Bar], type[list[int]]]`.
jvdillon:fix-intersection-narrowing
21 minutes ago
[ty] Experiment with frozen AST names
charlie/codex-frozen-string-baseline
25 minutes ago
[ty] Experiment with ArcStr-backed AST names
charlie/codex-frozen-string-arcstr
25 minutes ago
[ty] Experiment with Triomphe-backed frozen names
charlie/codex-frozen-string-triomphe
26 minutes ago
Use released compact_str for Ruff-side benchmarks
charlie/codex-frozen-string-baseline
32 minutes ago
[ty] Experiment with ArcStr-backed AST names
charlie/codex-frozen-string-arcstr
33 minutes ago
[ty] Experiment with Triomphe-backed frozen names
charlie/codex-frozen-string-triomphe
41 minutes ago
[ty] Reuse owned buffers for string literals
charlie/reuse-owned-string-literal-buffers
45 minutes ago

Latest Branches

CodSpeed Performance Gauge
0%
[ty] Narrow `isinstance` against intersections containing invalid member#26545
46 minutes ago
b98fd15
jvdillon:fix-intersection-narrowing
CodSpeed Performance Gauge
+5%
32 minutes ago
04ef87a
charlie/codex-frozen-string-baseline
CodSpeed Performance Gauge
-2%
37 minutes ago
4d2c3c6
charlie/codex-frozen-string-arcstr
© 2026 CodSpeed Technology
Home Terms Privacy Docs