Tech Business · 3 min read

Astral ships ty 1.0, the Rust type checker that gave OpenAI a 24x speedup

Astral's Rust-based ty 1.0 hits production: 24x median speedup and 73% less memory at OpenAI, fastest CLI checker on 16 of 18 benchmark projects, and 29x download growth in a year.

By Rebecca Stone649 words

Key takeaways

  1. Astral released ty 1.0, a Rust-based Python type checker, on Tuesday.
  2. OpenAI's migration to ty delivered a median 24x speedup and cut peak memory 73% across millions of lines of code.
  3. ty was fastest on 16 of 18 CLI benchmark projects and 14 of 17 editor diagnostics projects on an M3 Max.
  4. PyPI downloads of ty grew 29x between October 2025 and October 2026, reaching 11.6% share of the top 25,000 packages.
  5. mypy still leads ecosystem share at 62.9%, with Pyright at 26.0% and ty third.
Astral ships ty 1.0, the Rust type checker that gave OpenAI a 24x speedup
Pexels / pixabay

OpenAI now runs ty as its default Python type checker across millions of lines of production code, and the switch delivered a median 24x speedup while cutting peak memory usage by 73%. Those numbers, attributed to Astral founder Charlie Marsh, anchor the 1.0 release of ty that Astral shipped on Tuesday, declaring its Rust-written type checker and language server ready for broad production adoption.

Astral is the developer-tools startup behind uv, the Rust-powered Python package manager, and the linter Ruff. Ty is its bid to replace slower legacy checkers such as mypy and Pyright, and the 1.0 milestone arrives with a benchmark file that reads like a victory lap.

How fast is it, measured?

In uncached command-line benchmarks run on an Apple M3 Max, ty finished first on 16 of 18 major open-source Python projects. It posted a geometric mean speedup of 1.46x over Meta's Rust-based Pyrefly and 3.56x over Zuban, according to Astral's own figures.

The gap widened inside editors. Ty's incremental engine, built from the ground up around fine-grained incrementality, ranked fastest on 14 of 17 projects for live diagnostics, refreshing diagnostics after file edits 7.73x faster than Pyrefly and 3.22x faster than Zuban. The design goal, Astral says, is to keep editor diagnostics instantaneous even on sprawling monorepos. Developers can install the production release via uv or Astral's official VS Code extension.

Does correctness keep pace?

Speed is only half the pitch for enterprise Python teams migrating away from mypy. Astral built ty around gradual and set-theoretic typing, paired with a new generics solver and bidirectional type inference.

On the official Python typing conformance suite, ty 1.0 trims its error count to 14 false positives and 13 false negatives. At beta launch those numbers were 224 false positives and 405 false negatives. Mypy, by comparison, sits at 190 false positives and 109 false negatives. The trajectory matters more than the snapshot: ty's conformance errors fell roughly 16x on false positives and 31x on false negatives between beta and 1.0.

How much of the ecosystem has it captured?

PyPI downloads of ty jumped 29x between October 2025 and October 2026. In a November audit of the 25,000 most-downloaded PyPI packages that use a type checker, ty ranked third overall at 11.6% share. Among repositories created within the past year, it captured 22.6%.

The incumbents still lead. Pyright holds 26.0% and mypy 62.9% in the same audit. But the new-repo figure is the tell: ty already takes more than a fifth of projects starting fresh, and adoption has spread through major open-source projects including FastAPI and tox even before the 1.0 stamp.

What the numbers say

  • OpenAI migration: 24x median speedup, 73% lower peak RAM, default checker across millions of lines of Python.
  • Uncached CLI speed (M3 Max, 18 projects): fastest on 16 of 18; 1.46x faster than Pyrefly, 3.56x faster than Zuban.
  • Live editor diagnostics (17 projects): fastest on 14 of 17; 7.73x faster than Pyrefly, 3.22x faster than Zuban.
  • Typing conformance: 14 false positives and 13 false negatives, versus 224 and 405 at beta; mypy sits at 190 and 109.
  • PyPI adoption: 11.6% of the top 25,000 packages with a type checker, 22.6% of repos created in the past year, downloads up 29x year over year.

All benchmark and adoption figures come from Astral's own reporting and audit; the OpenAI results come via Charlie Marsh's account of the internal migration.

With a 24x-verified deployment inside one of the largest Python codebases in existence and a 22.6% share of brand-new repositories, ty now enters the post-1.0 race against mypy's entrenched 62.9% — and if the download curve holds, that gap compresses fast.

mlq.ai (Source)

Filed under

Share this article:

More from Rebecca Stone

Rebecca Stone

Show full bio

Correspondent covering technology and product news in Semiconductors, chip manufacturing, hardware, AI compute at Chip Dispatch.

1,444 articles

Read also

« Previous articleNext article »