OpenAI already switched. Ty, the Rust-built Python type checker from Astral, now ships as OpenAI's default and checks many millions of lines of its critical Python code, according to Astral's ty 1.0 announcement on December 1, 2026. Moving to ty gave OpenAI a median 24x speedup and cut peak memory use by 73 percent.
With version 1.0, Astral says ty is ready for production for everyone. Astral is the company behind uv, the Python package manager, and Ruff, the linter and formatter, both famous among developers for being absurdly fast.
What a type checker does
Python lets you write code without declaring what kind of data each variable holds. Since Python 3.5, programmers can add optional type hints, but the language itself never enforces them; as Wikipedia's entry on the Python language explains, outside tools such as mypy read those annotations to catch errors. A type checker is that outside tool. It spots the bug where you pass a string to a function that wants a number before the code ever runs.
Ty also works as a language server, the engine behind red squiggles, autocomplete and jump-to-definition in editors such as VS Code, PyCharm and Neovim.
The speed numbers
In Astral's benchmarks, ty was the fastest type checker on 16 of 18 open source projects. By geometric mean it ran 1.46 times faster than Pyrefly and 3.56 times faster than Zuban, two rivals also written in Rust. As a language server updating diagnostics after an edit, it won on 14 of 17 projects, at 7.73 times the speed of Pyrefly. The project's GitHub page pitches it as 10 to 100 times faster than mypy and Pyright, the two long-time leaders.
Fewer false alarms
Speed means little if the checker cries wolf. On Python's typing conformance suite, which Astral calls an imperfect proxy for real-world correctness, ty now records 14 false positives and 13 false negatives. At its beta release those numbers were 224 and 405. Mypy, for comparison, logs 190 false positives and 109 false negatives.
That is a 94 percent drop in false positives and a 97 percent drop in false negatives since beta.
The 1.0 release adds built-in support for Pydantic, Django, pytest and attrs, opt-in return type inference for functions without annotations, and a ty check --fix command that applies suggested repairs automatically. Teams moving over from another checker can run ty check --add-ignore to silence existing errors in one pass, or keep a baseline file so CI only fails on new ones.
Adoption is climbing
Astral says ty's downloads from the Python Package Index grew 29 times between October 2025 and October 2026, and that FastAPI and tox already use it. In a November audit of the 25,000 most-downloaded packages, 11.6 percent of repositories with a type checker used ty, putting it third behind mypy and Pyright. Among repositories created in the past year, ty's share was 22.6 percent, close to Pyright's 26.0 percent.
Charlie Marsh, who signed the announcement, wrote that "ty is the most technically ambitious project I have ever worked on." Next up, the team plans type-aware linting, dead-code elimination, unused dependency analysis and type-aware test selection. Ty is MIT licensed and installs with uv tool install ty@latest.
For more developer tools, see Badiyaa's stories on Zed's GPUI Rust framework getting its own repository and on Localcode, an open source coding agent for Macs.
Sources
- ty 1.0, Astral, 2026
- astral-sh/ty, Astral on GitHub, 2026
- Python (programming language), Wikipedia, 2026
Image: Taavi Burns, CC BY 2.0 via Wikimedia Commons
This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.




