Astral released ty 1.0 yesterday, and the announcement went straight to the top of Hacker News. If you write Python, the headline is easy to repeat: a Rust-based type checker and language server that Astral now recommends "for production use, for all users," roughly a year after the Beta announcement in December 2025.
The speed charts will get most of the attention. I think they are the least interesting part of the release. The more important story is about migration, about how a gradual type checker should behave when the code is only lightly typed, and about who now builds the tools that sit underneath most Python projects.
A quick note before I start: I have not benchmarked ty myself. Every number below comes from Astral's post, the 1.0.0 release notes or the linked benchmark files, and I've tried to label it that way.
What actually shipped
ty is an MIT-licensed type checker and language server written in Rust. Astral positions it as an alternative to mypy, Pyright and Meta's Pyrefly. You can install it with uv tool install ty@latest or through the VS Code extension.
The headline claims from the announcement:
- Production use at OpenAI. Astral says ty is now "the default and most widely-deployed type checker at OpenAI," and that the migration there produced a median 24x speedup and a 73% reduction in peak memory use.
- Command-line speed. In Astral's benchmarks, ty was fastest on 16 of 18 ecosystem projects: 1.46x faster than Pyrefly and 3.56x faster than Zuban by geometric mean. Both of those competitors are also written in Rust.
- Editor speed. For re-computing diagnostics after an edit, ty was the fastest language server on 14 of 17 projects in the same benchmark set.
- Conformance. On the Python typing conformance suite, ty went from 224 false positives and 405 false negatives at Beta to 14 and 13. For comparison, Astral reports 190 and 109 for mypy. The post itself calls the suite "an imperfect proxy for real-world correctness," which is fair.
- Adoption. PyPI downloads grew 29x between October 2025 and October 2026. In a November audit of the 25,000 most-downloaded PyPI packages, 11.6% of repositories that used any type checker used ty, putting it third behind mypy and Pyright.
Keep in mind that these are a vendor's benchmarks on a vendor's chosen projects. The benchmark file is public, which is good, but independent numbers will take a few weeks to appear.
The real feature is the on-ramp
Most teams that don't type check Python have the same problem: they would turn a checker on if it didn't immediately produce hundreds of errors in code that works fine in production.
ty 1.0 attacks that directly with two options:
-
ty check --add-ignoreadds suppression comments for every existing diagnostic in one pass. - A diagnostic baseline. You run
ty check --update-baseline, commit the resulting file, and CI then fails only on new diagnostics. According to the post, the baseline records individual diagnostics, so a new error in a file that already has old ones still fails the check.
Neither idea is new. Baselines have existed in linters for years, and people have hand-rolled them for mypy. But shipping it as a first-class, documented workflow matters, because the hardest part of adopting a type checker is social, not technical. "We fail the build on new problems only" is a policy that a team can agree to on a Tuesday afternoon. "We fix 450 warnings first" usually isn't.
There is also ty check --fix for diagnostics with an automatic fix, such as removing a redundant typing.cast.
Gradual typing that tries to meet code where it is
The more interesting technical claim is in how ty infers types. Astral describes its approach as built on gradual and set-theoretic typing, with a new generics solver and bidirectional inference.
The examples in the post make this concrete:
- Inference from context. In a list of
TypedDictvalues with one dictionary literal added inline, ty infers that the literal is also aRunner, carries that into asorted(..., key=lambda ...)call, and flags a misspelled key ("second"instead of"seconds") with a suggested fix. Astral says that of the eight type checkers it tested, only ty both caught the typo and accepted the corrected code. - Intersection types. A function that combines predicates ends up expecting
Sized & Iterable[int], so ty accepts a list and rejects an iterator that has no__len__. The post shows how mypy, Pyright and Pyrefly each handle the same code differently. That's a nice illustration of why "which checker?" is not a purely cosmetic choice. - Unannotated attributes. If
__init__setsself.attempts = 3, a laterpolicy.attempts = "three"is flagged. This is where lightly typed codebases get value without anyone writing annotations. - Opt-in return type inference. Functions without return annotations can have their return types inferred, and this is off by default.
ty 1.0 also ships built-in support for Pydantic, Django, pytest and attrs. In practice that matters more than any of the clever examples. These libraries rely on runtime behaviour that plain type rules don't describe well, and that is exactly where many checkers produce false positives. The Pydantic example in the post catches a string passed to a strict boolean field and warns when a constructor argument would be silently discarded because the field uses an alias.
Finally, for standalone scripts with PEP 723 inline metadata, ty can use uv to build a separate environment per script. That's in preview and is enabled with project-manager.script = "uv" (docs).
What the Hacker News thread pushed back on
The HN discussion is worth reading, because it's not a victory lap. A few themes stood out to me:
- "How does it compare to Pyrefly in practice?" Several commenters had tried ty during the Beta and moved to Pyrefly or basedpyright because inference felt less complete at the time. The 1.0 conformance numbers suggest a lot has changed, but people will want to see that on their own code.
- False positives on real code. One commenter tried it on a 10k-line project that had never been type checked: half a second, about 450 diagnostics, more than 400 of them from one pattern of splatting a dictionary of keyword arguments into a call. That's exactly the scenario the baseline feature exists for, and it's also a reminder that "fast" and "quiet" are different properties.
- Ownership. OpenAI announced in March that it would acquire Astral, with the team joining Codex, and both companies said the tools would stay open source. Microsoft maintains Pyright, and Meta maintains Pyrefly. One commenter asked whether a small number of large companies now effectively shape both the Python and TypeScript toolchains. That's a reasonable question to ask about any critical piece of infrastructure, and the MIT licence answers part of it, but not all.
- Editor constraints. Someone pointed out that their editor allows only one language server per file, which forces a choice between a linter (Ruff) and a type checker (ty). That kind of practical friction rarely shows up in announcement posts.
My take
This is opinion, not measurement.
The Python type checker market is now a real market. For years the practical choice was mypy or Pyright. Today there are at least five serious options, three of them written in Rust and backed by well-funded organisations. That's good for users, but it also means type checking results are no longer a single source of truth. Code that passes one checker can fail another, as Astral's own comparison examples show.
Speed changes behaviour, not just wait times. A checker that answers in under a second in the editor gets used while you type, not just in CI. That shifts type checking from a gate at the end to feedback during the work. It also matters for AI coding agents, which run the same checks many times in a loop. Given where ty is now developed, I'd expect that use case to shape its roadmap.
The baseline is the feature I'd test first. If you've been putting off type checking a legacy codebase, the honest evaluation is not "run ty and look at the error count." It's to record a baseline, wire it into CI for new code, and see whether the new diagnostics are worth acting on over a couple of weeks.
Don't switch because of a chart. If mypy or Pyright works for your team, the reason to try ty is a specific gap: editor latency, memory on a large monorepo, or false positives on Pydantic or Django code. Run it next to your current checker, compare the diagnostics on your own code, and decide based on that.
ty 1.0 is a serious release with a serious claim behind it. The next few months of independent reports will show whether its inference holds up as well on messy real-world Python as it does in the carefully chosen examples. I'd love to hear from anyone who has moved a large codebase over: what did the first ty check actually look like?
Sources: Astral, "ty 1.0" (Dec 1, 2026) and "ty Beta" (Dec 16, 2025); ty 1.0.0 release notes; ty BENCHMARKS.md; ty documentation; OpenAI, "OpenAI to acquire Astral" (Mar 19, 2026); the Hacker News discussion. All performance and adoption figures are as reported by Astral; I did not reproduce them. This article was drafted with AI assistance, then edited and checked against the linked sources.

