ty

2 min read Original article ↗

An extremely fast Python type checker and language server, written in Rust.

Shows a bar chart with benchmark results.

Shows a bar chart with benchmark results.

Type checking the home-assistant project without caching.

ty is backed by Astral, the creators of uv and Ruff.

Highlights

Getting started

Run ty with uvx to get started quickly:

ty will check all Python files in the working directory or project by default.

See the type checking documentation for more details.

Installation

To install ty, see the installation documentation.

To add the ty language server to your editor, see the editor integration guide.

Playground

ty has an online playground you can use to try it out on snippets or small projects.

Tip

The playground is a great way to share snippets with other people, e.g., when sharing a bug report.