Astral, known for developer tools like uv and Ruff, announced the 1.0 release of Ty, a Python type checker and language server. Ty is written in Rust and focuses on performance.
Internal migration to Ty at OpenAI resulted in a median 24x speedup and a 73% reduction in peak memory usage. Benchmarks show Ty is faster than other Rust-based type checkers like Pyrefly and Zuban on most ecosystem projects.
Ty's architecture incorporates incrementality, which enables fast live updates within an editor or long-running process. This design contributes to its performance as a language server, where it outperformed Pyrefly and Zuban in editor benchmarks.
Ty can be installed via uv tool install ty@latest or through its VS Code extension, making it accessible for developers.
Despite its beta status, Ty has seen adoption in projects like FastAPI and tox. A November audit of PyPI packages indicated that 11.6% of repositories with a type checker used Ty, placing it third behind mypy and Pyright. For repositories created in the last year, Ty's usage was 22.6%.
Ty employs a novel approach to Python typing based on gradual and set-theoretic typing. This foundation is intended to support the development of a more accurate type checker that can evolve with Python's type system. On the Python typing conformance suite, Ty now reports 14 false positives and 13 false negatives, a reduction from its beta release figures.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Astral has released Ty 1.0, a Python type checker and language server written in Rust, which is now the default type checker at OpenAI. Ty 1.0 offers significant speed improvements and reduced memory usage compared to other type checkers, and is recommended for production use. It aims to provide a faster and more accurate typing experience for Python developers.