· 8 min read

Astral Shipped ty 1.0 and Says It Is Ready for Production. It Reports 27 Conformance Misses Against Mypy's 299. Here Is How I'd Move a Small Python Project in an Afternoon.

Astral released ty 1.0 on December 1. ty is its Python type checker and language server, written in Rust, and the announcement by Charlie Marsh says: "We're ready to recommend it for production use, for all users." On the Python typing conformance suite the post reports 14 false positives and 13 false negatives for ty, 27 misses in total. It reports 190 and 109 for mypy, which is 299.

If you run mypy or Pyright on a small FastAPI or Django app, the question is whether to switch and how much of a weekend it costs. My answer is that the switch is now an afternoon, mostly because of one feature that has little to do with speed.

What the 1.0 post claims

On speed, ty was the fastest checker on 16 of 18 open source projects in cold command-line runs on an M3 Max. The geometric mean puts it 1.46x faster than Pyrefly and 3.56x faster than Zuban. In the editor, measuring diagnostics after an edit, it was fastest on 14 of 17 projects. The post is open about the exception: Pyrefly was fastest on PyTorch.

On correctness, the conformance numbers above are down from 224 false positives and 405 false negatives at beta. The post itself calls the suite "an imperfect proxy," and I'd read it the same way. It tests agreement with the typing spec. Whether a checker understands your ORM is a separate matter.

On adoption, PyPI downloads went from 1.7 million in October 2025 to 49.6 million in October 2026. The post also says ty is now the default type checker at OpenAI, where an internal migration saw a median 24x speedup and 73% lower peak memory.

It ships built-in support for Pydantic, Django, pytest and attrs, which matters because those four libraries are where type checkers usually need plugins.

What it leaves out

Look at which tools the speed charts include. Pyrefly and Zuban are both Rust checkers. There is no chart against mypy or Pyright in the post. The 24x figure comes from one company's internal migration, and the post doesn't say what OpenAI moved from. ty is very likely much faster than mypy on your project too, but the post gives you no number for it, so time it yourself.

The post also doesn't define what 1.0 promises. I found no versioning policy in it, and no statement about which behavior is stable between releases. When I looked at the GitHub README on December 2 it still described ty as beta with 0.0.x versions and no stable API. That is probably a README waiting for an edit, but I'd pin the exact version in the project until Astral writes the policy down.

Then there are the gaps users reported in the Hacker News thread. Commenters said Django reverse relations and django-stubs aren't supported yet, that Django REST Framework gets no special handling, that SQLAlchemy coverage is weaker, and that heavy metaprogramming produces false positives. One person found ty ignored packages installed under ~/.local, and a team member called that an oversight. These are user reports and I haven't reproduced them.

The feature that makes migration cheap

Switching type checkers used to mean a week of fixing or silencing hundreds of new complaints before CI went green again. ty 1.0 has two ways around that.

ty check --add-ignore writes suppression comments for every existing diagnostic in one pass. That works, and it litters the code.

ty check --update-baseline records the existing diagnostics in a committed file, ty-baseline.json, and from then on CI flags only new errors. This is the one I'd use. The old problems stay visible in a single file you can shrink over time, and nothing new gets in.

There is also ty check --fix, which applies the fixes ty knows how to make.

The order I'd follow

Install it as a pinned dev dependency so every machine and CI run uses the same version, then record the baseline:

uv add --dev ty
uv run ty check
uv run ty check --update-baseline
git add ty-baseline.json pyproject.toml uv.lock

The middle command will print a lot on a project that has only ever seen mypy. Skim it before you bury it. On a small codebase the first screen usually shows whether the complaints are real bugs, missing library support, or stricter inference. The post says ty is stricter about unannotated containers and attributes, and more permissive about narrowing after isinstance.

Next, add uv run ty check to CI as a second job and leave mypy or Pyright running. Two checkers for two weeks costs a few seconds of CI and tells you what each one catches that the other misses on your code, which no benchmark can.

After two weeks, decide. If ty caught everything the old checker did, delete the old job and its config. If the old checker caught real bugs that ty missed, keep both or stay where you are.

When I'd stay on mypy for now

Three cases. A Django app that leans on django-stubs and reverse relations, since commenters say that support isn't there. A codebase built around SQLAlchemy models, for the same reason. And any project that depends on a mypy plugin, because ty has no plugin system and the team described plugins in the thread only as a possible future option.

One more consideration is ownership. Commenters raised that Astral belongs to OpenAI now and asked what that means for independence. The code is MIT licensed, so the tool can't be taken away. The roadmap could still be steered toward its owner's needs, and that is worth knowing even if it changes nothing today.

Where this could be wrong

My afternoon estimate assumes a small codebase with mainstream libraries. A 200,000-line monolith with custom decorators is a different job, and the baseline file could run to thousands of entries that nobody ever cleans up. A baseline can also hide a real bug that was already there on day one. It only protects you from new ones.

What I'd actually do

For a new Python project I'd start on ty today and skip mypy. For an existing small app I'd run the four commands above this week, keep the old checker in CI for two weeks, and pin the ty version until a stability policy appears. The speed is nice. What makes it worth an afternoon now is the baseline file, which makes the trial cheap and easy to undo.

Author

Sources

Newsletter

The week, in one email.

The weekly summary of what happened and what it means for people who build alone. No spam, unsubscribe any time.

Form not showing? Subscribe on this page instead.

Related Posts