ty

(★ 19,522)

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

File Explorer

  • .editorconfig
  • .gitattributes
  • .gitignore
  • .gitmodules
  • .markdownlint.yaml
  • .pre-commit-config.yaml
  • .python-version
  • _typos.toml
  • AGENTS.md
  • BENCHMARKS.md
  • CHANGELOG.md
  • CONTRIBUTING.md
  • dist-workspace.toml
  • Dockerfile
  • LICENSE
  • mkdocs.yml
  • pyproject.toml
  • README.md
  • ruff
  • SECURITY.md
  • uv.lock

# Installation Guide

python
Prerequisites

Setup Steps

uvx ty check

Run ty quickly using uvx to perform type checking.

Key Commands

uvx ty check

Run the ty type checker to check the project.

ty officially supports type checking code targeting Python 3.10 and later.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

ruff

View Details ▼

An extremely fast Python linter and code formatter, written in Rust.
See also: `black`.

tldr ruff check

View documentation for the Ruff linter:

tldr ruff format

View documentation for the Ruff code formatter:

🔍

uvx

View Details ▼

This command is an alias of `uv tool run`.

tldr uv tool

View documentation for the original command:

# Project Badges

// repository documentation