Free Tools

Ty 1.0: Astral's Rust Python Type Checker Hits 1.0 — What It Is and Whether to Switch

By Asad Ali ·

13 min readLast updated

Cover image for the article about Ty 1.0, Astral's Rust-based Python type checker.

Astral's Rust-based Python type checker, ty, reached version 1.0 on 1 December 2026. It is free, open source under the MIT licence, and Astral now recommends it for production use. The headline number — a median 24× speedup at OpenAI, where ty is now the default type checker — is Astral's own measurement, and it comes with context worth knowing before you switch.

ty is a type checker and a language server for Python, written in Rust. It reads your Python code, checks it against its type annotations, and reports mismatches before the code ever runs — the same job mypy and Pyright do. Astral, the company behind the uv package manager and the Ruff linter, designed it as an alternative to those tools, and built it from the ground up to power a language server, so editor feedback is fast as well as command-line checks.

What Ty is, and who makes it

A type checker does one thing: it finds the bugs that only appear when the program runs. If a function expects a string and receives an integer, or a dictionary is missing a key the code assumes is there, a type checker flags it while you are still writing the code. Python itself does not check types at runtime, so these mistakes usually surface as crashes in production. A checker turns them into editor warnings instead.

ty is Astral's third major Python tool, after Ruff (linting and formatting) and uv (package management). All three are written in Rust, all three are MIT-licensed, and all three are built in the open on GitHub. The ty repository (astral-sh/ty) was created on 2 May 2025, and by 2 December 2026 it had 20,311 stars and 360 forks. The beta was announced in December 2025; the 1.0 release, published on 1 December 2026, is the first stable release, and Astral says it is now ready to recommend ty for production use to all users.

The 1.0 release is a substantial step up from the beta. It includes a rewritten generics solver, wider bidirectional inference, and more precise inference for code without annotations. It adds built-in support for Pydantic, Django, attrs and pytest, opt-in return-type inference for unannotated functions, and new options for stricter checking. It also adds two features aimed at adoption: ty check --fix, which applies automatic corrections, and ty check --add-ignore, which adds suppression comments in one pass so a team can silence an existing backlog and then fix it gradually.

How to install and run it

Astral gives two routes. The command-line route uses uv, its own package manager:

uv tool install ty@latest
ty check

The first command installs ty as a standalone tool; the second checks the current project. There is also a VS Code extension (astral-sh.ty on the Visual Studio Marketplace), which provides the language server — diagnostics, hover information, go-to-definition and the other editor features — inside the editor.

For a project that already has type errors, two commands from the 1.0 release notes make migration practical. ty check --fix applies the corrections ty can make safely, and ty check --add-ignore writes suppression comments for the errors that remain, so the team can start with a clean check and work through the backlog. A diagnostic baseline feature, still in preview, records the errors already present on the main branch so that continuous integration flags only new errors in a pull request while the backlog is being fixed.

One behavioural difference matters for teams coming from mypy: ty checks the bodies of unannotated functions by default. In a side-by-side test of the three checkers on the same file, ty caught a string assigned to an int variable that mypy skipped under its defaults. That makes ty stricter out of the box, and it means a first run on an untyped codebase will usually report more errors than mypy does — which is what the --add-ignore flag and the baseline feature are for.

Ty vs mypy vs Pyright

ty joins two established tools. mypy is the original Python type checker, in development since 2012, written in Python and MIT-licensed; it has 20,746 stars on GitHub. Pyright is Microsoft's checker, written in TypeScript and MIT-licensed, with 15,769 stars; it is the engine behind the Pylance extension in VS Code. Both are mature, both are widely used, and neither is going away.

ToolWritten inMade byStable sinceEditor supportLicence
ty 1.0RustAstral1 Dec 2026 (1.0)Built-in language server, VS Code extensionMIT
mypyPythonCommunity (since 2012)Stable for yearsCommand line, editor plugins, daemon modeMIT
PyrightTypeScriptMicrosoftStable for yearsBuilt-in language server, VS Code extensionMIT

The practical differences are design, not just speed. ty uses gradual and set-theoretic typing: it treats types as sets of values, and supports union, intersection and negation natively, including intersection types in annotations through the ty-extensions package. mypy and Pyright follow the more familiar nominal subtyping model. ty's approach is more expressive in some corners — it can describe types the others cannot — and it is also newer, which is why its conformance numbers, not just its speed, are part of the 1.0 story.

Two other Rust checkers sit in the same race: Pyrefly, from Meta, and Zuban. Astral benchmarks ty against both, and they are the reason the 1.0 announcement talks about geometric means rather than a single rival: the competition is no longer one Rust checker against the old guard, but three Rust checkers against each other.

Typing conformance suite — test files passingty 1.095%mypy57%Astral's figures, 1.0 release notes, Dec 2026. ty passed 29% at beta.Astral calls the suite "an imperfect proxy for real-world correctness".

The 24x claim, checked

The number everyone quotes from the announcement is this: ty is now the default and most widely-deployed type checker at OpenAI, covering many millions of lines of critical Python, and migrating to it produced a median 24× speedup and a 73% reduction in peak memory usage. That sentence is from Astral's own announcement, and the measurement is Astral's own — it describes OpenAI's internal migration, run by the company that makes ty.

There is also context the announcement does not spell out. OpenAI announced on 19 March 2026 that it would acquire Astral, with the Astral team joining its Codex division; the terms were not disclosed and the deal was subject to regulatory approval. So the "default at OpenAI" deployment is by the company that agreed to buy Astral — a real production deployment at serious scale, but not an independent customer win. That does not make the number false; it makes it a measurement from inside a relationship, and it should be read that way.

The 24× figure is also a median, not a promise for your codebase. It is the middle result across OpenAI's migration, where the previous setup was the incumbent checker on millions of lines. Astral's public benchmarks, run on an M3 Max across 18 ecosystem projects, show smaller gaps against the other Rust checkers: ty was the fastest on 16 of 18 projects, 1.46× faster than Pyrefly and 3.56× faster than Zuban by geometric mean. Against the older checkers the gap is larger, but Astral's own numbers do not put a single multiple on ty versus mypy or Pyright.

One independent test did. A side-by-side benchmark of five checkers on the same 201-file, 17,999-line typed Python codebase, using cold runs, found ty 1.0.0 finished in a median of 0.042 seconds — 24.2× faster than mypy 2.4.1 (1.015 s) and 74.9× faster than Pyright 1.1.414 (3.148 s), using 74.9 MB of memory against mypy's 149.9 MB and Pyright's 536.0 MB. That is one small, typed codebase and three cold runs per tool, not a survey of real projects — but it points the same way as Astral's numbers, and it is the only independent measurement available at launch.

What the other numbers say

Speed is only half the 1.0 story; the other half is correctness. On Python's typing conformance suite, ty now passes 95% of test files, up from 29% at beta, compared with 57% for mypy (Astral's figures). It records 14 false positives and 13 false negatives on the suite, down from 224 and 405 at beta. Astral itself calls the suite "an imperfect proxy for real-world correctness", which is the right caveat: passing a conformance test is not the same as catching real bugs in real code, but going from 29% to 95% in a year is a real change in capability, not a rounding error.

Adoption is the third number. PyPI downloads of ty grew 29× between October 2025 and October 2026, from 1.7 million to 49.6 million distribution-file downloads. Widely used projects including FastAPI and tox have adopted it. Those are Astral's figures from PyPI's public dataset, and they describe downloads, not users — but a 29× rise in a year, during a beta, is the shape of a tool being tried seriously rather than merely announced.

What 1.0 means — and what is still missing

Version 1.0 means Astral is ready to recommend ty for production use to all users, and that the core is stable enough to build on. It does not mean the tool is finished. Two features in the release notes are explicitly still in preview: the diagnostic baseline for CI, and support for PEP 723 scripts (single-file scripts with inline dependencies, run through uv). Preview features can change, and teams that adopt them should expect that.

There are also gaps against the incumbents. The same side-by-side test that showed ty catching errors mypy missed also found ty has no equivalent yet for some mypy rules — there is no ty counterpart for mypy's no-untyped-call, and no match-exhaustiveness check comparable to mypy's exhaustive-match or Pyright's reportMatchNotExhaustive. Teams that rely on those rules will find ty thinner there today. The honest summary is that 1.0 is a stable foundation with a fast engine and strong conformance, not a complete replacement for every workflow the older checkers support.

Who should switch now, and who should wait

Switch now if you are starting a new Python project, if your team already uses uv and Ruff and wants one toolchain, or if type-checking speed is a real bottleneck — a slow checker in CI or a laggy language server is the problem ty most clearly solves. The migration path is deliberately low-friction: install it, run ty check --add-ignore once to silence the existing backlog, and fix the backlog gradually while new errors are caught immediately.

Wait, or run ty alongside your current checker, if your codebase depends heavily on mypy plugins, if you rely on match-exhaustiveness checks, or if your team has years of mypy configuration tuned to your codebase. In that case the sensible move is to try ty on one service or one package first and compare its diagnostics with what you already get, rather than switching a whole monorepo on launch week. And if your project has no type annotations at all, ty will check unannotated code by default — which is useful, but it means the first run will be noisy, and the baseline feature is the way to make that noise manageable.

Frequently Asked Questions

What is Ty?

Ty is a Python type checker and language server written in Rust, made by Astral, the company behind uv and Ruff. It checks Python code against its type annotations and reports mismatches before the code runs. Version 1.0 was released on 1 December 2026, and Astral now recommends it for production use.

Is Ty free?

Yes. Ty is open source under the MIT licence, free to use, and its code is public on GitHub at astral-sh/ty. Install it with uv tool install ty@latest or through the VS Code extension.

Does Ty replace mypy or Pyright?

It is designed as an alternative to both, and for many projects it can. It is faster and, on the conformance suite, more correct than mypy by Astral's figures. But it does not yet have equivalents for some mypy rules, such as no-untyped-call and match-exhaustiveness checks, so teams that rely on those should test before switching.

How do I install Ty?

With uv: uv tool install ty@latest, then run ty check in your project. Or install the VS Code extension (astral-sh.ty) for editor diagnostics. Both routes are given in Astral's announcement.

Is Ty really 24 times faster?

24× is the median speedup Astral measured in OpenAI's internal migration to ty, with a 73% reduction in peak memory — Astral's own figure, from its own announcement. In Astral's public CLI benchmarks ty was fastest on 16 of 18 ecosystem projects, 1.46× faster than Pyrefly and 3.56× faster than Zuban. One independent test on a 201-file codebase found ty 24.2× faster than mypy and 74.9× faster than Pyright. The gap is real; the exact multiple depends on the codebase.

What does OpenAI owning Astral mean for Ty?

OpenAI announced on 19 March 2026 that it would acquire Astral, with the team joining its Codex division; the deal was subject to regulatory approval. Ty remains MIT-licensed and open source, and Astral says it will keep developing its open-source tools. The "default at OpenAI" deployment should be read with that relationship in mind — it is a deployment by the company that agreed to buy Astral, not an independent customer win.

Does Ty work with Django, Pydantic and pytest?

Yes — built-in support for Pydantic, Django, attrs and pytest is part of the 1.0 release, so framework code that used to need mypy plugins is handled natively. That is one of the main reasons to try it if you previously stayed with mypy for its plugin ecosystem.

Sources

Want a website or web app that works as hard as your ideas do? Talk to Asad Webs — we build web apps, AI-powered tools and fast, search-friendly websites for teams in the USA, UK, UAE, KSA and Spain.

Related reading: uv: The Python Package Manager That Replaces pip, venv, pyenv and pip-tools · Browse all free tools.

Category: Free Tools

Tags: free-tools · open-source · technology

About Asad Ali

Asad Ali is a graphics designer with over 20 years of experience — designing since 2003 — and the founder of Asad Webs, based in Pakistan. He builds the free online tools on this site and writes the guides published here.

LinkedIn Facebook Website
KEEP READING

Next guide

Omalauncher: Omarchy Linux on Your Android Phone — Real Arch, No Root, Checked →

Related articles

Join the conversation

No account needed. Comments appear only after approval. Your email address will not be published.

Be the first to share a useful question or thought.

You won’t be subscribed to any mailing list.
WELCOME BACK

Sign in

Access your orders, saved products and account.