HeadlinesBriefing HeadlinesBriefing.com

Ty 1.0: an extremely fast Python type checker and language server

Hacker News •
×

Ty 1.0, an extremely fast Python type checker and language server written in Rust, has reached stable release. Designed as an alternative to mypy, Pyright, and Pyrefly, ty is now the default type checker at Open AI, providing coverage for millions of lines of critical Python. Migrating to ty resulted in a median 24x speedup and 73% reduction in peak memory usage.

The tool is ready for production use. Built with an obsessive focus on performance, ty was the fastest type checker on 16 out of 18 ecosystem projects, 1.46x faster than Pyrefly and 3.56x faster than Zuban. It was also the fastest language server on 14 out of 17 projects, 7.73x faster than Pyrefly and 3.22x faster than Zuban.

Ty has grown rapidly despite Beta status, with adoption in widely used projects like FastAPI and tox. PyPI downloads grew 29x between October 2025 and October 2026. In a November audit of the 25,000 most-downloaded PyPI packages, 11.6% of repositories with a type checker used ty, placing it third behind mypy and Pyright.

Among repositories created in the last year, 22.6% used ty. Ty takes a novel approach to Python typing based on gradual and set-theoretic typing. It recorded just 14 false positives and 13 false negatives on the Python typing conformance suite, down from 224 and 405 at the Beta release, compared to mypy's 190 false positives and 109 false negatives.

The 1.0 release includes a novel generic solver and support for extensive bidirectional inference. It can infer types from context, catching misspelled keys and suggesting corrections in real-time. Ty is installable via uv tool install ty@latest or the VS Code extension.

Source: Hacker News · Summarized by HeadlinesBriefing