ty type checker: what 1.0 changes
ty 1.0 lands with a 24x median speedup over mypy, 14 false positives on the typing conformance suite, and a baseline workflow that makes migrating a legacy Python codebase a CI-safe incremental job.

Astral shipped ty 1.0 on December 1, and the announcement leads with a median 24x speedup over mypy plus a 73% cut in peak memory at OpenAI, where ty is now the default checker for millions of lines of Python. Speed was never the thing stopping migrations, though. mypy has been slow for a decade and teams simply put up with it. What decides a switch is the false-positive rate and the price of handling the few thousand diagnostics already sitting in your legacy codebase. Both of those moved in this release, and the ty 1.0 announcement puts hard numbers on both.
ty type checker speed, measured on real projects
The command-line benchmarks ran on an M3 Max across 18 widely used Python projects with no caching. ty finished first on 16 of them, 1.46x faster than Pyrefly and 3.56x faster than Zuban by geometric mean, and both competitors are also written in Rust. The editor numbers look similar. Across 17 projects in update-after-edit benchmarks, ty’s language server was fastest on 14, running 7.73x faster than Pyrefly and 3.22x faster than Zuban. Incrementality does the heavy lifting there: a long-lived process that only recomputes diagnostics for open files can stay fast on a big monorepo, because the untouched files cost nothing to recheck.
PyPI distribution downloads grew 29x between October 2025 and October 2026, all while the tool carried a beta label. FastAPI and tox adopted it during that window. Nobody wires a beta checker into a fast-moving framework for vanity, so that adoption says more than any benchmark chart.
Adoption across the 25,000 most-downloaded PyPI packages
A November audit of the 25,000 most-downloaded PyPI packages found that 11.6% of repositories with a type checker used ty, third behind mypy and Pyright. Among repositories created in the last year, the split is 62.9% mypy, 26.0% Pyright, and 22.6% ty. Those percentages sum past 100 because many repos run more than one checker, so read them as shares rather than a total. The direction is the part worth attention: ty’s share comes almost entirely from new projects, which means the next generation of Python codebases is picking its checker before the old habits do.
Speed alone would not have gotten ty this far, because every checker on the market is now fast enough on small projects.
Conformance results are the number to watch
- ty at Beta: 224 false positives, 405 false negatives on the Python typing conformance suite
- ty at 1.0: 14 false positives, 13 false negatives
- mypy (current): 190 false positives, 109 false negatives
The false-positive count fell from 224 to 14, a 16x cut in noise, and false negatives dropped from 405 to 13. This matters more than the speedup. A checker that cries wolf gets muted within a week, and mypy’s 190 false positives are why so many teams install it, run it once, pin an ignore file, and stop reading the output. Astral admits the conformance suite is an imperfect proxy for real-world correctness, and the admission is fair, but 14 versus 190 is not a rounding difference. Two checkers can both be imperfect and still not be comparable.
Inference that catches bugs at the call site
The 1.0 release ships a new generics solver and bidirectional inference, and the published examples show what that buys. One case involves a list of TypedDict records sorted with a key lambda. A dictionary appended to the list matches the TypedDict’s shape, so the lambda receives that type, and ty flags the misspelled key inside the lambda. Of the eight type checkers tested, only ty both caught the typo and accepted the function after it was fixed. Mypy infers Never for the input of conjoined predicates and rejects both calls, Pyright infers only Sized and flags the definition instead of the typo, and Pyrefly accepts the iterator that fails at runtime. That last failure mode is the expensive one: a checker that stays quiet while the program throws.
A second example shows the same strength on smaller footguns. Annotating a field as tuple[int] means exactly one element, so an empty-tuple guard becomes unreachable, and ty warns that the condition is redundant and points at tuple[int, …]. It also traces the unreachable return back to the annotation that caused it, across the function body, in one diagnostic. Fixing the cause from the symptom report is what a diagnostic system is for.
Pydantic, Django, pytest, and attrs now get built-in handling. In the Pydantic case, ty accepts a string passed where the model converts it to a Path, rejects a string fed to a strict bool field, and warns that an argument is discarded because the field declares an alias. Return type inference is opt-in for functions without annotations, enabled with analysis.return-type-inference=”always”, so a check inside a helper travels to the caller and turns a runtime AttributeError into a compile-time error.
Migrating a legacy codebase without drowning
uv tool install ty@latest
ty check --update-baseline # saves current diagnostics to ty-baseline.json
ty check --add-ignore # or write suppression comments in one passThe baseline file is the piece that makes migration a real option instead of a weekend project. Commit ty-baseline.json, and CI fails only on diagnostics you have not yet recorded, so the checker gates new code while you burn down the old debt at your own pace. It is the same gate-on-new-violations pattern as the missing OpenTelemetry spans: OPA CI gate setup, and it works for the same reason: existing noise stops being an argument for skipping the tool entirely. Run –add-ignore instead if you would rather see suppressions inline in the source, but a baseline file diffed in review reads better than a wall of # ty: ignore.
One caveat about benchmarks in general: numbers measured on someone else’s hardware against someone else’s workload are marketing until you replicate them on yours. Measured comparisons like X25519MLKEM768 vs X25519 only mean something when the setup matches your own. Run ty on your biggest repo before believing the 24x median.
Where I would stay put for now
Pyright still wins on zero-friction defaults, because Pylance ships bundled with VS Code and most Python developers never install a checker on purpose. mypy carries years of plugin investment, and if your CI depends on one of those plugins, the migration is a bigger job than swapping the binary. Astral’s whole line, uv, Ruff, and now ty, follows the same Rust-CLI playbook as witr, which traces a port back to its parent process: take a slow or clunky tool, rewrite the hot path in Rust, and compete on seconds saved. That playbook works when correctness keeps up, and on the conformance evidence it now does.
I have not run ty against a large Django codebase, so framework coverage beyond the four named libraries is unverified as far as this post goes. The number I will watch is the 22.6% share among repositories created in the last year. If it keeps climbing while mypy’s 62.9% stalls, migration pressure will come from new projects setting the default, and the installed base will follow them rather than the reverse.