Astral says its Python type checker ty is production-ready
Astral released ty 1.0 on December 1, a free Python type checker and editor helper written in Rust that spots type mistakes before code runs. Astral says it recommends ty for production use in all projects. Its speed figures come from Astral's own tests, and some stricter checks stay opt-in for now.
Charlie Marsh announced ty 1.0 on Astral's blog on December 1, 2026. ty checks Python type hints and also works as a language server, the part of an editor that shows red underlines as you type. It is an alternative to mypy, Pyright and Pyrefly.
Astral says ty is ready to recommend for production use for all users. It has built-in support for Pydantic, Django, pytest and attrs. Checking scripts that declare their own dependencies (PEP 723, used with uv) is still a preview. Return type inference and strict generic narrowing are opt-in.
The speed numbers are Astral's, run on an M3 Max laptop. Cold command-line checks were fastest on 16 of 18 open-source projects, and editor feedback after an edit was fastest on 14 of 17. Astral also reports a median 24x speedup and 73% lower peak memory for OpenAI's migration.
On the typing conformance suite, ty records 14 false positives and 13 false negatives, against 190 and 109 for mypy. Astral calls that suite an imperfect proxy. The post does not state the licence.
New to this? The key idea
A type checker reads your code without running it and flags places where a value of the wrong kind is passed around, like a spell checker for data. Catching those slips while you type is cheaper than finding them in production.
Use it at work
Use it for: slow type checks in CI or a laggy editor on a large Python codebase. Platform and backend teams who maintain shared Python services should care most.
Try it: install it with the command from the announcement, then run it against one service and compare the output and run time with your current checker.
uv tool install ty@latest
A VS Code extension named astral-sh.ty is available for editor feedback.
Before you roll it out: licence not stated in the post. Version is 1.0, maintained by Astral. Expect some differences from mypy results, so run both side by side for a sprint before switching CI. Strict generic narrowing and return type inference need opt-in settings.
Summaries are written by AI from the linked source. Always check the original.