πŸ“¦ astral-sh / ty

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

β˜… 16.6k stars β‘‚ 190 forks πŸ‘ 16.6k watching βš–οΈ MIT License
πŸ“₯ Clone https://github.com/astral-sh/ty.git
HTTPS git clone https://github.com/astral-sh/ty.git
SSH git clone git@github.com:astral-sh/ty.git
CLI gh repo clone astral-sh/ty
renovate[bot] renovate[bot] Update prek dependencies (#2558) 9ffe443 1 days ago πŸ“ History
πŸ“‚ main View all commits β†’
πŸ“ .github
πŸ“ assets
πŸ“ docs
πŸ“ python
πŸ“ scripts
πŸ“„ _typos.toml
πŸ“„ .editorconfig
πŸ“„ .gitattributes
πŸ“„ .gitignore
πŸ“„ .gitmodules
πŸ“„ .python-version
πŸ“„ BENCHMARKS.md
πŸ“„ CHANGELOG.md
πŸ“„ CONTRIBUTING.md
πŸ“„ Dockerfile
πŸ“„ LICENSE
πŸ“„ mkdocs.yml
πŸ“„ pyproject.toml
πŸ“„ README.md
πŸ“„ ruff
πŸ“„ SECURITY.md
πŸ“„ uv.lock
πŸ“„ README.md

ty

ty PyPI Discord

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


Shows a bar chart with benchmark results.

Type checking the home-assistant project without caching.


ty is backed by Astral, the creators of uv and Ruff.

Highlights

sophisticated reachability analysis

Getting started

Run ty with uvx to get started quickly:

uvx ty check

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 ruff submodule (which includes all of the Rust source code).

See the contributing guide for more details.

FAQ

Why is ty doing \\\\\_?

See our typing FAQ.

How do you pronounce ty?

It's pronounced as "tee - why" (/tiː waΙͺ/)

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.

Made by Astral