astral-sh / ty
An extremely fast Python type checker and language server, written in Rust.
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing astral-sh/ty in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewty An extremely fast Python type checker and language server, written in Rust. Type checking the home-assistant project without caching. ty is backed by Astral, the creators of uv and Ruff. ty is currently in beta. Highlights • 10x - 100x faster than mypy and Pyright • Comprehensive diagnostics with rich contextual information • Configurable rule levels, per-file overrides, suppression comments, and first-class project support • Designed for adoption, with support for redeclarations and partially typed code • Language server with code navigation, completions, code actions, auto-import, inlay hints, on-hover help, etc. • Fine-grained incremental analysis designed for fast updates when editing files in an IDE • Editor integrations for VS Code, PyCharm, Neovim and more • Advanced typing features like first-class intersection types, advanced type narrowing, and sophisticated reachability analysis Getting started Run ty with uvx to get started quickly: Or, check out the ty playground to try it out in your browser. To learn more about using ty, see the documentation. Installation To install ty, see the installation documentation. To add the ty language server to your editor, see the editor integration guide. Getting help If you have questions or want to report a bug, please open an issue in this repository. You may also join our Discord server. Contributing Development of this project takes place in the Ruff repository at this time. Please open pull requests there for changes to anything in the submodule (which includes all of the Rust source code). See the contributing guide for more details. Version policy ty uses versioning. ty does not yet have a stable API; breaking changes, including changes to diagnostics, may occur between any two versions. See the type system support tracking issue for a detailed overview of currently supported features. FAQ Why is ty doing \_\_\_\_\_? See our typing FAQ. How do you pronounce ty? It's pronounced as "tee - why" ( ) How should I stylize ty? Just "ty", please. License ty is licensed under the MIT license (LICENSE or ). Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ty by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.