ty

ty

Extremely fast Python type checker and language server written in Rust by Astral (creators of Ruff and uv).

★ 20.5K

Type-check large Python codebases in milliseconds with Astral’s Rust engine

Waiting thirty seconds for `mypy` or `pyright` to type-check a medium-sized Python monorepo breaks your concentration and slows down editor go-to-definition jumps. Built in Rust by Astral (the team behind `uv` and `Ruff`), ty brings incremental, Salsa-powered type checking and an integrated Language Server Protocol (LSP) backend to Python. With 20.5K GitHub stars and 362 forks under the MIT license, it completes Astral’s high-speed Rust toolchain for Python developers.

What makes ty a major leap for Python tooling

  • Incremental Rust architecture caches fine-grained AST and type-inference queries so re-checking a modified file inside an editor happens in a few milliseconds.
  • Gradual typing and intersection types handle real-world untyped or partially annotated Python libraries gracefully without flooding your terminal with false-positive noise.
  • A built-in LSP server (`ty server`) delivers fast hover types, symbol references, and diagnostics in VS Code, Neovim, Helix, and Zed without spawning a heavy Node.js Pyright process.
  • Rich terminal diagnostics borrowed from the Rust compiler point to the exact conflicting type assignments across function calls.

Maturity and adoption note

Because `ty` is Astral’s newest flagship tool, edge-case support for complex mypy plugins (like legacy Django or SQLAlchemy dynamic metaclass plugins) is still expanding rapidly across releases. Run `uvx ty check` inside your Python repository today to benchmark how fast your type checks finish without installing a single dependency.

Ready to try ty?

Experience the full capabilities on their official website.

Visit Official Website