← Back to News Stack
Python4 min read

ty 1.0: Fast, but 'Production Ready' Is a Vendor Claim

Astral shipped ty 1.0, its Rust-based Python type checker. A type checker is a merge gate, so treat the swap as a policy change: shadow mode, baselines, pinned versions.

A Python type checker output panel in a CI pipeline, with a green check next to a merge gate and a second checker's diagnostics running in shadow beside it

Astral shipped ty 1.0 on 1 December: a Rust-based Python type checker and language server, which the company says is ready for production use by everyone. Its headline numbers come from OpenAI's internal migration, where ty is now the default checker. Astral reports a median 24x speedup and a 73% drop in peak memory.

I haven't benchmarked these, but for a backend team the speed matters less than what the checker now decides.

A type checker is a merge gate

I come from Java and Spring Boot, where I've watched static analysis go from "nice report nobody reads" to "the build is red and you can't merge." Once a tool can block a pull request, it stops being a developer convenience. It is policy. It decides what code is allowed into production, and every team member's day is shaped by what it flags and what it lets through.

So the question for ty is not "how fast is it." It is "what does a green run now mean?"

What I'd read twice

Start with the claim itself. "Ready for production use" is Astral's sentence. The 1.0 post makes no semver or compatibility promise that I can find. That makes it a statement of confidence from the vendor, not something you can hold them to. If a point release changes which diagnostics fire, your pipeline is the one that goes red on a Tuesday afternoon.

The benchmarks are Astral's own, on an M3 Max, cold runs. I'm not saying they're wrong. I'm saying a laptop number is not your CI runner, and your monorepo is not OpenAI's. Measure it on your own code before you put a speedup in a planning doc.

Then there's correctness. Astral's conformance suite, which Astral itself calls an imperfect proxy, still shows 14 false positives and 13 false negatives. That is a large improvement on the beta's 224 and 405, so it is not a bad result. The false positives cost you time. The false negatives are the ones I care about, because they are bugs a type checker should have caught and didn't. Strict generic narrowing is also off by default. The post gives no conformance numbers for mypy or Pyright, so I can't say a green ty run is weaker than a green run from either; I'd just want to know before trusting it as a gate. The checker people trust is the one whose "pass" they understand.

How I'd adopt it

Treat it like any new merge gate, because it is one.

  • Shadow mode first. Run ty next to your current checker, non-blocking, for a few weeks. Don't touch the old gate yet.
  • Diff the diagnostics. The useful artifact is the list of places where the two disagree. Every disagreement is either a bug in ty, a bug in your old config, or a real defect one of them was missing. You want to know which before you switch.
  • Use --update-baseline to avoid a flag day. Existing violations get recorded, new ones block. Nobody should have to fix 4,000 findings before the swap lands.
  • Pin the version. If 1.0 gives no compatibility promise, an unpinned checker in CI is a diagnostics change you didn't review.

Speed and cheap incremental checks are real wins. A language server that doesn't choke on a large repo changes how people work every day, and that matters. But a faster checker that disagrees with your old one is a policy change, even if the install is one command. I made the same argument about model upgrades in the Amazon Ergo piece: faster and cheaper doesn't mean equivalent.

One vendor, three tools

uv, ruff and ty all come from Astral. If your team uses all three, that is the package manager, the linter and the type checker from one company, with one roadmap and one release cadence. I have no adoption data on how many teams do. The post names OpenAI as its biggest deployment, and a large user can influence what gets fixed first.

That is a risk to plan for, not a prediction. If your whole developer loop runs through one vendor, you should be able to say what you'd do if its priorities moved. That means keeping a path back to mypy or Pyright, and keeping the old checker's config alive for a while after the switch.

My take

Adopt ty, but not on the strength of a 24x chart. Run it in shadow, baseline the existing debt, pin the version, and track the diagnostic diff until you trust it. Don't retire your old checker until ty's "green" means something to your team. Until then, ty 1.0 is a second opinion worth running, not yet your gate. I haven't tried it on a real repo, so treat this adoption plan as untested.