ty 1.0 Is Here: Astral's Type Checker Goes Stable

Astral released ty 1.0 on December 1, 2026 and calls it ready for production. OpenAI already runs it as its default checker. What changed, and how to try it.

Astral released ty 1.0 on December 1, 2026, and the announcement reads like a finish line. ty is the company’s Rust-written Python type checker and language server, built as an alternative to mypy, Pyright, and Pyrefly. After a beta period that already drew adoption from FastAPI and tox, Astral says it is ready to recommend ty for production use, for all users. The headline adopter is OpenAI, where Astral says ty is now the default and most widely deployed type checker, covering many millions of lines of Python.

A 1.0 release from Astral is worth a closer look than most version numbers, because the company has shipped the same playbook three times now: uv replaced a shelf of packaging tools, Ruff replaced a shelf of linters, and ty is the attempt to do the same for type checking. The question for Python teams is not whether ty is fast. Astral’s numbers say it is, and the numbers are Astral’s own. The question is whether 1.0 is the point to switch, and what the migration actually costs. This article walks through what shipped, what the numbers do and do not prove, and how to try ty on a real codebase without committing to it.

What ty 1.0 is

ty checks Python types and serves them to editors, in one Rust binary. The command line side is ty check. The editor side is a language server, available through a VS Code extension. Install it with uv tool install ty@latest, or open the extension marketplace and install it from there. The zero-install way to evaluate it is uvx ty check, which runs the checker on any repository without changing the lockfile or the virtual environment.

The design follows the same idea as the rest of Astral’s toolchain. ty is built around fine-grained incrementality, which means it tracks what changed and rechecks only that, instead of starting over. In an editor, that is what makes diagnostics appear fast after an edit. In CI, it is what makes a full check cheap enough to run on every pull request. The type system underneath is based on gradual and set-theoretic typing, which Astral describes as the foundation for building something more than a faster checker. The practical version of that claim is in the 1.0 feature list, which is where the release earns its version number.

The numbers Astral published, and what they are

The announcement leads with OpenAI. Astral says migrating OpenAI’s core codebase to ty produced a median 24x speedup and a 73 percent reduction in peak memory usage, and that ty is now OpenAI’s default checker. Those figures are Astral’s account of OpenAI’s migration, and they describe one very large codebase. A team with a smaller codebase will see a smaller absolute gain, because the time being saved is smaller to begin with.

The benchmark numbers are Astral’s own measurements, and they should be read that way. In the company’s benchmarks, ty was the fastest type checker on 16 of 18 ecosystem projects: 1.46x faster than Pyrefly and 3.56x faster than Zuban by geometric mean. In editor benchmarks, ty was the fastest language server on 14 of 17 projects, 7.73x faster than Pyrefly and 3.22x faster than Zuban. The projects were chosen by Astral, the measurements were run by Astral, and the announcement says so by presenting them as its own benchmarks. Independent reproductions do not exist yet for the 1.0 release, and this article does not present these figures as independent results.

The conformance numbers are more interesting because they measure correctness rather than speed. On the Python typing conformance suite, ty records 14 false positives and 13 false negatives, down from 224 and 405 at the beta release. For comparison, mypy reports 190 false positives and 109 false negatives. Astral calls the suite an imperfect proxy for real-world correctness, and that caveat is worth keeping, because a conformance suite tests the type system against a specification, not against the messy code in a real repository. The direction is still clear. ty’s error rate on the suite fell by more than an order of magnitude between beta and 1.0, while mypy has not moved at the same pace.

Adoption is the third set of numbers, and it comes from public data. PyPI distribution file downloads for ty grew from 1.7 million in October 2025 to 49.6 million in October 2026, a 29x increase. Over the same period mypy grew from 55.2 million to 198.7 million, and the Pyright Python wrapper from 14.4 million to 50.2 million. A November audit of the 25,000 most-downloaded PyPI packages found that 11.6 percent of repositories with a type checker used ty, placing it third behind mypy and Pyright. Among repositories created in the last year, 22.6 percent used ty, against 26.0 percent for Pyright and 62.9 percent for mypy. New projects adopt ty at nearly the same rate as Pyright, which is the number that matters for a team choosing a checker today, because it shows where the ecosystem is heading rather than where it has been.

What is new in 1.0

The 1.0 release includes extensive improvements to core type checking, and the two that change daily work are the novel generics solver and the support for extensive bidirectional inference. Bidirectional inference is what lets ty catch a misspelled dictionary key in one place and accept the corrected code in another, without the programmer adding annotations to guide it. The announcement shows a TypedDict example where ty infers that a dictionary literal is a Runner, carries that type into a sort key, catches "second" where "seconds" was meant, and suggests the correction. Mypy, Pyright, and Pyrefly handle the same example differently, and the announcement works through each one, which is worth reading in full for anyone who wants to see the inference behavior rather than take the summary for it.

Built-in library support is the other change that removes friction. ty 1.0 includes built-in support for Pydantic, Django, pytest, and attrs, so projects using those libraries no longer need external stubs or plugins for the checker to understand them. The announcement shows a Pydantic example where ty accepts a path string that Pydantic converts to a Path, flags a string passed to a strict boolean field, and warns about using simulate=True where the constructor expects dry_run. That kind of checking is what makes a type checker useful on a real codebase instead of a toy example, because it catches the mistake at the boundary between the programmer’s code and the library’s API.

Return type inference is now available as an opt-in feature for functions without return annotations. With it enabled, ty carries the type of a function’s return value to the caller, so a decode function that checks a log record has an id before returning it lets the caller use record.id without a complaint. Without it, ty treats the result as Unknown. Pyright, Pyrefly, and Zuban infer LogRecord in the same example and flag the attribute access, while mypy infers Any. The opt-in design is deliberate. Return type inference changes what the checker accepts, and Astral is letting teams turn it on when they are ready rather than changing the behavior under them.

The diagnostic system, which the beta announcement presented as a strength, now supports automatic fixes. ty check --fix applies the fixes a diagnostic suggests, such as removing a redundant cast that the checker can prove is unnecessary. The announcement shows a span.py example where the cast around an integer addition is removed while the parentheses are kept, preserving the order of operations. Automatic fixes are the feature that turns a checker from a reporting tool into an editing tool, and they are the reason to run ty in the editor rather than only in CI.

Migration support: the baseline is the feature that matters

The most practical feature in 1.0 is the one that has nothing to do with speed. Migrating an existing project to a new type checker produces a long list of diagnostics, and a team that has to fix all of them before turning the checker on will never turn it on. ty 1.0 gives two ways around that.

The first is ty check --add-ignore, which adds suppression comments in one pass. The second, and the better one for a team, is the diagnostic baseline. Run ty check --update-baseline and ty records the existing diagnostics in a separate file, ty-baseline.json. Commit that file, and CI will flag new errors while the team fixes the old ones over time. The baseline saves individual diagnostics, so a new error in the same file still fails the check even though the old ones are recorded. The feature is still in preview, according to the release notes, which means its format may change, but the workflow it enables is the one that makes adoption feasible on a codebase with history.

Script support follows the same pattern. ty can now check standalone Python scripts that declare their dependencies and Python requirements through inline metadata, the PEP 723 format, and by integrating with uv it can prepare a separate environment for each script. That integration is also in preview, and it is enabled in the ty configuration with project-manager.script = "uv". A team that keeps automation scripts alongside its main project can now check both together, even when the scripts need different Python versions or conflicting dependencies.

How to try it without committing

The honest way to evaluate a type checker is to run it on your own code, and ty 1.0 makes that cheap. The zero-install evaluation is one command, run from any repository:

Bash
uvx ty check

That runs the latest ty against the current directory without installing anything permanently. If the output looks manageable, the next step is to wire it into CI beside the tools already there, so dependency sync, linting, and type checking share one workflow:

Bash
uv sync --frozen
uv run ruff check .
uv run ty check

Running all three Rust tools in sequence keeps pull-request validation predictable and avoids separate Python runtime installs for the linter and the checker. Pin ty to version 1.0.0 in the CI environment, because the baseline feature is in preview and a floating version could change its behavior under you.

Before turning ty on in CI, run the baseline command once and commit the result. That is the step that makes the migration survivable. A repository with hundreds of existing diagnostics will not get fixed in a day, and a checker that blocks every pull request until they are fixed will be turned off by the end of the week. The baseline lets the team fix old diagnostics at its own pace while new code is held to the new standard from the first pull request.

There is one more check worth doing before switching, and it is the one the announcement invites by being specific about its own numbers. Run ty and your current checker on the same repository and compare the diagnostics, not the speed. Speed is easy to measure and hard to argue with, but a checker that runs fast and reports errors your team does not trust will be ignored. The conformance numbers say ty’s error rate on the suite is low. The only way to know whether that holds on your code is to run it there. Pyrastra covered the earlier ty 0.0.106 release in ty 0.0.106 Splits TypeIs Narrowing Into Two Rules, and the 1.0 announcement is the right place to see how far the checker has moved since that release.

Should you switch from mypy or Pyright

The teams who benefit most from ty 1.0 are the ones with large codebases, slow editor feedback, or new projects that have not yet chosen a checker. A large codebase is where the incrementality and the memory reduction show up as minutes saved on every check. A new project is where the adoption numbers matter, because the ecosystem is moving toward ty and the tooling around it will keep improving. A team already running uv and Ruff gets the most from switching, because the three tools share a workflow and a release cadence, and the CI configuration for all three fits in a few lines.

The teams who should wait are the ones whose type checking depends on mypy plugins or Pyright’s strict-mode edge cases. ty supports many of the rules in mypy’s strict mode and goes further in places, such as warning when a function returns Any, including partially-Any cases that mypy’s warn-return-any misses. But plugin ecosystems do not move on a release date, and a project that leans on a mypy plugin has to check whether ty has an equivalent before switching. The announcement is candid about the trade-offs in its own way, noting where ty is stricter and where it is more permissive, and where it relaxed narrowing rules so common Python patterns need fewer casts. Those are decisions a team should test on its own code, not accept from a changelog.

For most Python teams, the right move is the small one: run uvx ty check on the repository this week, read the diagnostics, and decide from what it actually reports. The 1.0 label means Astral will support the checker as a production tool. It does not mean the migration is free. The baseline feature exists because Astral knows it is not, and a team that uses it will get the speed without paying the migration cost up front. Our uv 0.13.10 lockfile checks guide covers the packaging side of the same toolchain, and our Python code quality toolchain guide puts the three tools together in one workflow.

Share this article

X Facebook LinkedIn Reddit Telegram

Your notes on this article

Your name or initials, note and date stay in this browser profile. Anyone using the profile can read them. Delete a note below or clear this site’s browser data. To reach the editors, report a correction.

No notes saved here