Astral’s ty 1.0 Puts a Rust Type Checker Into Production

Laptop with blurred code on a developer desk beside a keyboard, notebook and coffee

Astral’s ty 1.0 Puts a Rust Type Checker Into Production

Laptop with blurred code on a developer desk beside a keyboard, notebook and coffee

Astral’s ty 1.0 Puts a Rust Type Checker Into Production

Astral ty 1.0 arrived on 1 December 2026, and with it the Python type checker written in Rust left beta behind. Astral, the team behind the uv package manager and the Ruff linter, now says ty is ready to recommend for production use.

The announcement leans on a striking reference customer. Astral reports that ty is now the default and most widely deployed type checker at OpenAI, covering many millions of lines of critical Python, and that migrating there brought a median 24-times speedup and a 73 percent cut in peak memory. Those are vendor-reported figures from one very large codebase, so smaller projects should expect different numbers.

For most Python teams, the practical question is narrower. Does ty catch enough real mistakes, fast enough, without creating a migration project that eats the time it saves? Version 1.0 tries to answer that with a new generics solver, built-in support for popular libraries, automatic fixes, and tools for adopting the checker gradually rather than all at once.

Key takeaways

  • Astral released ty 1.0 on 1 December 2026 and now recommends it for production use, according to the company.
  • Astral reports ty is the default type checker at OpenAI, with a vendor-reported median 24-times speedup and 73 percent lower peak memory after migration.
  • Version 1.0 adds a new generics solver, bidirectional inference, built-in Pydantic, Django, pytest and attrs support, and a fix flag.
  • Independent testing found ty fastest on cold runs, while a warm mypy cache narrowed the local gap sharply.
  • Patch releases are for bug fixes, but minor releases may add new type errors, so pinning the version in CI matters.
Detail What to know
Release ty 1.0, released 1 December 2026; a 1.1.0 follow-up was reported on 3 December
What it is A Python static type checker and language server written in Rust, from the team behind uv and Ruff
Headline claim Astral reports OpenAI uses ty by default, with a median 24-times speedup and 73 percent lower peak memory
New in 1.0 Generics solver, bidirectional inference, library support built in, automatic fixes and ignore helpers
Watch-out Minor releases may introduce new diagnostics, so teams should pin versions and review upgrades

What actually shipped in ty 1.0

ty reads the same type annotations that mypy and Pyright read, but it brings its own rule names, its own suppression comments, and its own configuration. It runs from the command line as a checker and inside editors as a language server, offering navigation, completions, code actions, auto-imports, inlay hints and hover information.

The headline engineering change is a new generics solver with bidirectional inference. In plain terms, ty can use surrounding context, such as the type a value is expected to have, when inferring the type of an expression. Astral presents the new solver as a step toward handling real, complicated codebases rather than tidy examples.

Just as important is what ty does not have: a plugin system like mypy’s. Instead, support for libraries such as Pydantic, Django, pytest and attrs is built into the checker itself. That keeps installation simple and avoids plugin version mismatches, but it also means support for a niche library depends on Astral adding it. Teams leaning on a specialised mypy plugin should check that dependency before assuming a clean swap. Readers weighing the wider Astral toolchain can compare it with the trade-offs in our guide to Ruff, Black and Flake8 workflows.

Speed is the pitch, but the cache tells the story

Speed has always been ty’s argument. Astral reports that ty was the fastest checker on 16 of 18 benchmark projects it measured, and that monthly downloads rose from 1.7 million in October 2025 to 49.6 million in October 2026, against a much larger figure for mypy. Those are company-reported numbers, chosen and measured by the maker, so they deserve a discount. Even discounted, the direction is consistent with what independent testers found.

Monitor with blurred code above sticky notes and headphones under a desk lamp
A quiet desk setup is where fast type checking earns its keep, in the editor and in CI.

One independent benchmark run in December 2026 put ty through a cold check of a 54-file FastAPI package in about 2.1 seconds, against roughly 11.4 seconds for mypy and 10.1 seconds for Pyright. On a larger target including tests, ty finished in about 3.3 seconds while mypy needed about 45 seconds. Those are one tester’s numbers, but they show where the advantage is largest: fresh CI checkouts with no cache.

The same testing also showed the limit of the pitch. With mypy’s incremental cache warm, local runs narrowed to a few hundred milliseconds for both tools, a gap most developers would barely notice. So the honest summary is not that ty is always dramatically faster. It is that ty removes the cold-start penalty and keeps editor feedback quick, while a well-cached mypy setup remains competitive on a developer’s own machine. Editor architecture shapes that experience too, as our comparison of Python editor setups with BasedPyright and Ruff explores.

Correctness matters more than raw pace

A fast checker that misses bugs, or invents them, is worse than a slow one. Astral points to the Python typing conformance suite, where ty is reported to have dropped to 14 false positives and 13 false negatives, down from 224 and 405 at beta, and to pass about 95 percent of test files. Astral itself calls that suite an imperfect proxy for real-world correctness, which is a fair caveat: conformance tests measure agreement with the typing specification, not whether a tool catches the mistakes your team actually makes.

Independent testing on real code underlined the differences. On the FastAPI package, ty reported a small set of diagnostics, mypy reported none under the project’s own strict configuration, and Pyright reported dozens under its defaults. That spread shows each checker has opinions and blind spots, and raw error counts without matched configurations mislead. Teams should run ty beside their current checker and read the disagreements, because those disagreements are where the value, or the noise, will be.

Version 1.0 also adds stricter checks, including an opt-in rule for unsound return types and a warning for redundant conditions that is on by default. Used well, those catch dead code and logic slips that annotations alone miss. Used carelessly across a legacy codebase, they can flood a first run with warnings. The sensible path is to enable new strictness deliberately, rule by rule, rather than turning everything on and teaching the team to ignore the output.

Migration tools decide whether teams switch

The features most likely to win converts are unglamorous. A fix flag can apply suggested corrections automatically, including rewriting renamed suppression comments. An add-ignore helper can silence existing diagnostics so a legacy project reaches a passing check today, then burns the list down over time. A diagnostic baseline, still marked as preview in early coverage, lets teams record current findings and fail only on new ones. Together, those turn adoption from a big-bang rewrite into a ratchet.

That ratchet approach suits how large codebases actually change. A team can add ty to CI in report-only mode, compare its findings with the existing checker for a few weeks, fix the genuine bugs it surfaces, and only then make it a required gate. Keeping mypy running during the transition costs little and gives a safety net while rule names, suppression comments and configuration are translated. The OpenAI migration Astral describes suggests this can work at serious scale, though again, that account comes from the vendor.

Installation is deliberately boring: a single binary delivered through normal Python tooling, runnable without a permanent install for a one-off check, with an editor extension for the language server. Type checking sits in the critical path of every commit, so easy pinning and rollback matter. As coding agents write more of the code, fast checking also becomes a feedback loop for machines, a shift visible in tools that split work across agents, such as the approach covered in Friday’s multi-agent coding launch.

What could still hold ty back

Three risks stand out. First, the missing plugin system: if your codebase depends on a mypy plugin for a framework or an internal library, ty may simply not understand parts of it yet. Built-in support for the big names helps, but the long tail is long. Second, diagnostic churn. Astral’s versioning policy says patch releases fix bugs while minor releases may add new type errors, which is honest but means an unpinned upgrade can turn a green pipeline red overnight.

Third, incumbency. mypy remains the reference checker with the deepest ecosystem, and Pyright sits behind the editor experience many Python developers already use. Downloads and defaults change slowly in tooling, because switching costs are paid in configuration, comments and team habits. ty 1.0 lowers those costs; it does not erase them. Teams with a working, fast-enough setup and heavy plugin use have the least reason to move first.

None of that diminishes the release. A production recommendation, a flagship deployment at OpenAI as reported by Astral, sharply improved conformance figures and migration tooling together make ty a credible default candidate for new projects and a serious trial for existing ones. The teams that benefit most will be those that test it on their own code, with their own configuration, instead of trusting anyone’s headline multiple, including the vendor’s.

Frequently asked questions

When was Astral ty 1.0 released?

Astral released ty 1.0 on 1 December 2026, ending the beta period, and said it is ready to recommend for production use. A 1.1.0 follow-up was reported a few days later, so teams adopting it should check which exact version they are pinning.

What is ty, in simple terms?

ty is a static type checker and language server for Python, written in Rust by Astral, the team behind uv and Ruff. It reads type annotations, reports likely type mistakes before code runs, and powers editor features such as completions, navigation and hover information.

Is ty really 24 times faster?

That figure is vendor-reported: Astral says migrating at OpenAI brought a median 24-times speedup and 73 percent lower peak memory. Independent tests found large cold-run gains but much smaller gaps against a warm mypy cache, so your mileage will depend on codebase size and caching.

How does ty compare with mypy and Pyright?

mypy is the reference checker with the deepest plugin ecosystem, Pyright is Microsoft’s checker behind popular editor tooling, and ty is the Rust newcomer built for speed and incremental editor feedback. The right choice depends on plugin needs, editor setup and how each tool’s diagnostics fit your code.

Does ty support Pydantic and Django?

Yes. Version 1.0 includes built-in support for Pydantic, Django, pytest and attrs, because ty has no plugin system like mypy’s. Library support is built into the checker itself, which simplifies installation but means niche libraries depend on Astral adding support.

Should a team switch to ty immediately?

Not blindly. A safer path is to run ty beside your current checker, compare the disagreements, use the ignore and baseline helpers to reach a passing run, and pin the version in CI, since minor releases may add new type errors.

Bottom line

Astral ty 1.0 is less a feature drop than a statement of intent: the Rust type checker wants to be treated as production infrastructure, and Astral has put a reported OpenAI deployment, conformance gains and migration tooling behind that claim. The vendor numbers should be read as vendor numbers, but independent cold-run testing supports the core promise of speed where CI feels it most.

For Python teams, the decision is now practical rather than speculative. Trial ty on a real repository, keep the old checker running while you compare findings, pin the version, and let your own diagnostics, not a headline multiple, decide. If the disagreements it surfaces are mostly real bugs, 1.0 has done its job.

on this page