Skip to main content
Development 2 min read 281 views

New Python Type Checker "ty" Promises Orders of Magnitude Speed Improvement

Written in Rust, the new ty type checker and language server enters beta, offering dramatically faster performance than Mypy and Pyright on large codebases.

TD

TechDrop Editorial

Share:

A new Python type checker called "ty" has entered beta, promising orders of magnitude faster performance than existing tools like Mypy and Pyright. Written in Rust, ty is designed to handle the largest Python codebases with minimal latency.

Performance Improvements

According to benchmarks, ty offers dramatic speed improvements:

  • Incremental updates: Orders of magnitude faster than Mypy on large projects
  • Full project analysis: Significantly faster cold-start performance
  • Language server mode: Near-instant feedback for IDE integration

Even compared to other Rust-based tools like Pyrefly, ty demonstrates superior performance on incremental updates—the most common operation during active development.

Why Rust?

The choice to implement ty in Rust provides several advantages:

  • Memory efficiency: Rust's ownership model enables efficient memory usage without garbage collection pauses
  • Parallelization: Safe concurrent processing of multiple files
  • Predictable performance: No JIT warmup or GC pauses during analysis

Current Status

ty is currently in beta with a stable release planned for 2026. The tool is positioned as an alternative to:

  • Mypy: The original Python type checker
  • Pyright: Microsoft's static type checker
  • Pylance: VS Code's Python language server (built on Pyright)

Implications for Python Development

Faster type checking could encourage broader adoption of type hints in Python projects. Teams that previously avoided type checking due to slow feedback loops may reconsider with ty's improved performance.

Related Articles