# ty 1.0: Rust-based Python type checker is ready for production

> Astral's ty 1.0 is a stable Rust Python type checker. OpenAI uses it by default, reporting a median 24x speedup and 73% less peak memory.

- Published: 2026-12-02
- Topic: [Computing](https://futuretechnologyhq.com/topic/computing/)
- URL: https://futuretechnologyhq.com/article/ty-1-0-rust-based-python-type-checker-is-ready-for-production/
- Publisher: [Future Technology HQ](https://futuretechnologyhq.com/), free to read. Quote as "Future Technology HQ" with a link to the article.

## Key points

- ty 1.0 is Astral's first stable release, and the company recommends it for production use by all users
- OpenAI's internal migration produced a median 24x speedup and a 73% cut in peak memory, though these are company-reported figures
- The --add-ignore flag and baseline files let teams adopt ty in an existing codebase without fixing every diagnostic first
- On the typing conformance suite ty records 14 false positives and 13 false negatives, against mypy's 190 and 109

## Article

Astral released ty 1.0 on 1 December 2026, and the biggest implication is that a Rust-built Python type checker now has a stable release that Astral recommends for production use. OpenAI has made ty its default type checker across many millions of lines of critical Python, and Astral says the migration produced a median 24x speedup and a 73% reduction in peak memory use.

A type checker reads Python code without running it and flags values used in ways their types do not allow. ty also runs as a language server, the background process an editor talks to for errors, completions and navigation as you type. Those two numbers come from Astral's own reporting, so they are company claims rather than independent measurements. They are still specific enough to be worth testing against your own codebase.

## What changed

ty 1.0 is the first stable release of the tool, which spent several months in Beta. Astral, the company behind the uv package manager and the Ruff linter and formatter, says it is ready to recommend ty "for production use, for all users". Installation is a single command, uv tool install ty@latest, or through a VS Code extension.

The release bundles several substantive changes:

- **A new generics solver and bidirectional inference.** Astral says ty is the only one of eight type checkers it tested that both reported a misspelled key in a test example and accepted the function once the key was corrected.
- **Built-in support for Pydantic, Django, pytest and attrs.** These libraries lean heavily on runtime behaviour that static checkers have historically struggled to model.
- **Opt-in return type inference** for functions without return annotations.
- **Automatic fixes** via ty check --fix, building on a diagnostic system that can link a warning to its cause across files.
- **Migration tooling:** ty check --add-ignore and a baseline file, covered below.
- **Script support in preview.** Standalone scripts that declare dependencies through inline metadata (PEP 723) can be checked alongside a whole project, using uv to build a separate environment per script. It is switched on with project-manager.script = "uv".

On correctness, Astral points to the Python typing conformance suite, which it calls an imperfect proxy for real-world behaviour. ty now records 14 false positives and 13 false negatives, down from 224 and 405 at Beta. For comparison, Astral reports that mypy records 190 false positives and 109 false negatives on the same suite.

On speed, Astral's benchmarks put ty fastest on 16 of 18 ecosystem projects, 1.46x faster than Pyrefly and 3.56x faster than Zuban by geometric mean. In editor use, it was fastest on 14 of 17 projects, 7.73x faster than Pyrefly and 3.22x faster than Zuban.

## Impact on businesses

The clearest example is OpenAI, where ty is now the default and most widely deployed checker.

The wider adoption data comes from a November audit of the 25,000 most-downloaded PyPI packages. Of repositories with a type checker, 11.6% used ty, putting it third behind mypy and Pyright. Among repositories created in the last year, ty reached 22.6%, against 26.0% for Pyright and 62.9% for mypy. FastAPI and tox are among the projects that have adopted it. ty's PyPI downloads grew 29x between October 2025 and October 2026.

For IT teams in both the UK and the US, the practical question is migration cost. Astral has addressed this directly. Running ty check --add-ignore inserts suppression comments in one pass. Alternatively, a baseline file records existing diagnostics; committing it lets CI flag only new errors while teams clear the backlog gradually.

## Impact on consumers and users

Developers using the VS Code extension will notice the language server first. Astral's editor benchmarks are about live updates, and ty's architecture is built around "incrementality", meaning it recomputes only what changed rather than re-analysing a project. For anyone who has watched an editor lag after a large refactor, that is the user-visible change.

The diagnostics also differ in style. A single ty diagnostic can connect a warning to its cause across files and suggest a fix, which ty check --fix can then apply.

There is a behavioural trade-off to understand. ty has been made stricter in some places, inferring more precise types for unannotated containers and attributes, and more permissive in others. Narrowing after isinstance checks now needs fewer casts, though a strict generic narrowing setting exists for teams that want soundness prioritised. Teams switching from mypy should expect some diagnostics to appear and others to vanish, and should review both.

Return type inference is opt-in, and Astral's own example shows why inference choices matter. In a function that checks a log record has an id before returning it, ty carries that information to the caller and accepts record.id. Astral says Pyright, Pyrefly and Zuban infer LogRecord and flag the access, while mypy infers Any.

## Impact on the wider industry

The type checker market is crowded: mypy, Pyright, Pyrefly (Rust, like ty) and Zuban (also Rust) all compete. Astral's claim is that ty is now fastest on most of its own benchmark projects while recording fewer conformance failures than mypy. If those results hold up outside Astral's test projects, the competitive pressure falls on the incumbents to match incremental performance.

Astral's strategy is also visible. The company already owns the package manager and the linter and formatter for many Python teams, and ty extends that toolchain. The uv integration for PEP 723 scripts is an example of the tools sharing state. Astral says it wants to use the type engine for type-aware linting, dead-code elimination, unused dependency analysis and type-aware test selection. Consolidation of that kind has an upside in coherence and a downside in dependence on one vendor's roadmap.

The source describes no regulatory dimension. UK and US readers will mainly meet this as a tooling decision rather than a compliance one.

## What comes next

Astral says its immediate priority is supporting users through adoption, and that ty will "get significantly better every week" in the way Ruff and uv did. No dated roadmap is given. The broader applications it lists are exploratory: type-aware linting, dead-code elimination, unused dependency analysis and type-aware test selection. The script integration is in preview rather than stable, so teams relying on PEP 723 workflows should treat it accordingly.

## Key takeaways

- ty 1.0 is stable and Astral recommends it for all users in production.
- OpenAI's reported median 24x speedup and 73% memory cut are Astral's figures; benchmark on your own code.
- Baselines and --add-ignore make staged migration realistic.
- Conformance results (14 false positives, 13 false negatives) are a proxy, as Astral itself says.

## Verdict

This is a net positive for Python teams that are held back by slow checking, particularly large codebases and CI pipelines where mypy-class tools have become a bottleneck. The evidence is mostly vendor-reported, and the benefit depends on how closely a team's code resembles Astral's test projects. The sensible next step is a trial run on one repository using a baseline file, comparing time, memory and the diagnostics that differ from the current checker, before committing to a switch.

## Sources

- [Astral](https://astral.sh/blog/ty-1.0)
- [ReasonCore](https://reasoncore.dev/post/ty-10-brings-astrals-rust-based-python-type-checker-to-a-stable-release)
- [dev.to](https://dev.to/jamilxt/ty-10-vs-mypy-pyright-and-pyrefly-read-the-benchmarks-then-migrate-in-four-steps-9a5)
