Open Hardware & RISC-V

Astral releases ty 1.0, a Rust-based Python type checker and language server

Key Takeaway

ty 1.0 ships as a Rust-written alternative to mypy and Pyright, adds Pydantic, Django and pytest support, and is now the default type checker at OpenAI, where the switch produced a median 24x speedup.

Summary

Charlie Marsh has announced ty 1.0 on the Astral blog. ty is a Python type checker written in Rust, positioned as an alternative to mypy and Pyright, and it is distributed through uv or as a VS Code extension. Astral is the same team behind the uv package manager and the Ruff linter, so ty extends the company's Rust-based Python tooling line into static type analysis and language-server functionality.

The 1.0 milestone adds support for Pydantic, Django and pytest, three of the most widely used frameworks in the Python ecosystem and historically the hardest to type-check accurately. Diagnostics can now connect a warning raised in one file to its origin in another, and simple fixes can be applied automatically. The release also comes with a notable production reference: ty is now the default type checker at OpenAI, and that migration delivered a median 24x speedup according to the announcement.

What changes in ty 1.0

  • Rust implementation: ty is written in Rust and distributed as a binary through uv or as a VS Code extension, putting it in the same toolchain family as Astral's uv package manager and Ruff linter.
  • Framework coverage: the 1.0 release adds support for Pydantic, Django and pytest, extending type checking to model definitions, web application code and test suites that previously required workarounds or were poorly covered.
  • Cross-file diagnostics: warnings can now be linked back to the file where the underlying problem originates, rather than being reported only at the point of use.
  • Automatic fixes: simple diagnostics can be corrected automatically, reducing manual edits for routine type errors.
  • Measured adoption: OpenAI has made ty its default type checker, and the switch there produced a median 24x speedup, giving the release a large-scale production data point.

Why it matters

Python type checking has been dominated by mypy and Pyright, and a third Rust-based implementation backed by the uv and Ruff team gives distributions, CI pipelines and editor integrations a new option with a different performance profile. The Pydantic, Django and pytest support matters most for real-world codebases, since those frameworks are where type checkers traditionally produce the most noise. OpenAI's reported median 24x speedup, if it holds for other large repositories, would make full-project type checking practical in pre-commit hooks and CI rather than a slow optional step.

What to do

  • Install ty 1.0 through uv.
  • Install ty 1.0 as a VS Code extension.

Original reference: blog.adafruit.com →