Flash

Flash·Apps & Agents·2026-12-03 02:10

Astral Ships ty 1.0, Now OpenAI's Default Python Type Checker

Astral released version 1.0 of ty, its Rust-written Python type checker, on December 1, recommending it for production use by all users. Astral says ty is now OpenAI's default and most widely deployed type checker, covering millions of lines of critical Python code.

A sunny developer desk with a laptop showing a code editor
ty 1.0 is out, recommended by Astral for production use. AI-generated illustration.

What happened

The migration figures come from Astral: after OpenAI migrated to ty internally, type checking ran a median 24 times faster, with peak memory usage down 73%. In Astral's own benchmarks, ty was fastest on 16 of 18 open-source projects, 1.46 times faster than Pyrefly and 3.56 times faster than Zuban by geometric mean.

Version 1.0 adds a rewritten generics solver, broader bidirectional inference, built-in support for Pydantic, Django, pytest and attrs, opt-in return-type inference, automatic fixes via `ty check --fix`, and one-pass migration via `--add-ignore`; a committable diagnostic baseline mode lets CI flag only new errors.

On adoption: PyPI downloads rose from 1.7 million in October 2025 to 49.6 million in October 2026, a 29-fold increase; a November audit of the 25,000 most-downloaded PyPI packages found 11.6% of repositories with a type checker used ty, third behind mypy and Pyright. OpenAI announced in March this year that it would acquire Astral, with the team joining Codex.

Key facts

  1. 1.0 release: ty is a Rust-written Python type checker and language server, positioned as an alternative to mypy, Pyright and Pyrefly; Astral says 1.0 is ready to recommend for production use by all users.
  2. OpenAI default: ty is now OpenAI's default and most widely deployed type checker, covering millions of lines of critical Python code; the internal migration delivered a median 24x speedup and a 73% reduction in peak memory usage.
  3. Benchmarks: In Astral's own tests, ty was fastest on 16 of 18 open-source projects; as a language server it was fastest on 14 of 17 projects, 7.73 times faster than Pyrefly and 3.22 times faster than Zuban.
  4. New features: Rewritten generics solver, broader bidirectional inference, built-in support for libraries including Pydantic, opt-in return-type inference, `ty check --fix` and `--add-ignore`, a diagnostic baseline, and PEP 723 script checking (in preview).
  5. Adoption scale: PyPI downloads grew 29-fold in a year, from 1.7 million to 49.6 million; among repositories created in the last year, 22.6% used ty, 26.0% used Pyright and 62.9% used mypy.
  6. Typing conformance: On the Python typing conformance suite, ty records 14 false positives and 13 false negatives, down from 224 and 405 at the beta release; mypy reports 190 false positives and 109 false negatives. Astral calls the suite an imperfect proxy for real-world correctness.

Why it matters

ty went from beta to 1.0 within a year and into OpenAI's default toolchain, the first time a Rust-rewritten type checker has approached mypy and Pyright in adoption scale.
Useful Tap if this story helped you
Send to a friendMakes a share image for X, WeChat, Telegram and more

SourcesAstral blog (Dec 1); The Morning Dev (Dec 2). This article is a compilation of public information and does not constitute investment advice.

From HIMIAO Horizon · himiao.ai

Grab todayDataCamp Premium annual special: $132 for the first yearHIMIAO Picks →

Follow HIMIAO Horizon

No sign-up · Unsubscribe any time

Email

Notifications

A ping on your phone or computer when the brief is out. No email needed.

HIMIAO PicksWeekly freebies: one email every Friday, a 5-minute read

Comments

  1. Loading comments…
Ask the cat