News 3 min read

Astral releases ty 1.0, its Rust-based Python type checker


Astral, the company behind the uv package manager and the Ruff linter, released ty 1.0 on December 1, 2026. ty is a Python type checker and language server written in Rust, built as an alternative to mypy, Pyright and Pyrefly, and with 1.0 Astral says it is “ready to recommend it for production use, for all users”. The headline number comes from OpenAI, where ty is now the default type checker: moving to it gave a median 24x speedup and 73% less peak memory, according to Astral’s announcement.

What’s new

Speed

Astral says ty was the fastest command-line type checker on 16 of the 18 open-source projects in its benchmarks: 1.46x faster than Pyrefly and 3.56x faster than Zuban by geometric mean (both are also written in Rust). As a language server, where it re-checks open files after each edit, it was fastest on 14 of 17 projects, 7.73x faster than Pyrefly and 3.22x faster than Zuban. These are Astral’s own benchmarks, run on an M3 Max.

Fewer wrong answers

On the Python typing conformance suite, which Astral calls “an imperfect proxy for real-world correctness”, ty now reports 14 false positives and 13 false negatives, down from 224 and 405 at its Beta release. Astral gives mypy’s figures as 190 false positives and 109 false negatives.

The release adds a new generics solver and bidirectional inference, so ty can work out a type from the context it is used in: a dictionary literal added to a list of TypedDict values is checked as that TypedDict, and a misspelled key in a sort key is caught with a suggested fix. ty also infers types for unannotated containers and instance attributes, so it catches mistakes in lightly typed code, and it relaxes some narrowing rules after isinstance checks so common patterns need fewer casts.

Library support and new options

  • Built-in support for Pydantic, Django, pytest and attrs. For Pydantic, ty understands field aliases and strict fields, and warns when an argument would be silently discarded.
  • Return type inference for functions without a return annotation, opt-in with analysis.return-type-inference.
  • Automatic fixes with ty check --fix.
  • Stricter opt-in rules, such as unsound-return, which warns when a function returns Any or a partly-Any value like list[Any], and strict generic narrowing.
  • Scripts with inline metadata (PEP 723): ty can use uv to prepare a separate environment for each script. This is in preview, enabled with project-manager.script = "uv" in ty’s configuration.

What it means for developers

You can try ty today with uv tool install ty@latest or through Astral’s VS Code extension, then run ty check in your project.

For existing codebases, 1.0 adds two ways to adopt it without fixing every error first. ty check --add-ignore adds suppression comments for all current errors in one pass. Or you can configure a baseline file and run ty check --update-baseline to record existing diagnostics; commit that file, and CI flags new errors while you clean up the old ones.

ty is already used by FastAPI and tox, and Astral says its PyPI downloads grew 29x between October 2025 and October 2026.

How it compares

In a November audit of the 25,000 most-downloaded PyPI packages, Astral found that 11.6% of repositories using a type checker used ty, behind mypy and Pyright. Among repositories created in the last year, 62.9% used mypy, 26.0% Pyright and 22.6% ty.

Checker Conformance false positives Conformance false negatives
ty 1.0 14 13
ty Beta 224 405
mypy 190 109

Figures from Astral’s announcement; Astral did not give conformance numbers for Pyright, Pyrefly or Zuban in the post.

What’s next

Charlie Marsh writes in the announcement that the immediate priority is helping users adopt ty, and that Astral can now start exploring broader uses of its type engine: type-aware linting, dead-code elimination, unused dependency analysis and type-aware test selection. If you follow Rust tooling, our post on Rust 1.100 covers the language that ty, uv and Ruff are written in.

Sources

  • ty 1.0, Astral blog, December 1, 2026