Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

ty

> 编程语言
Open source

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

19.3K stars0 likes2 views
WebsiteGitHub

About

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

ty

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:

bash
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.

Version policy

ty uses 0.0.x 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.

For information on the timeline, you can check out the Stable milestone.

FAQ

Which Python versions does ty support?

ty officially supports type checking code that targets Python 3.10 and later. Earlier versions (Python 3.7 through 3.9) can still be selected, but may result in false negatives or false positives due to a lack of bundled standard library stubs.

The target version is independent of the Python version used to install ty. For example, ty installed from PyPI using Python 3.8 or later can type check code targeting Python 3.7; the standalone installer does not require Python at all.

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 https://opensource.org/licenses/MIT).

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.

Issues· 913 open

View all issuesOpen on GitHub
  • #31

    Dependency Dashboard

    internalUpdated Oct 1, 2026
  • #4632

    Incorrect typing inference from NewType slice (tuple)

    Updated Oct 1, 2026
  • #4629

    AsyncGenerator return annotation causes large slowdown for async context manager yielding a recursive protocol

    performanceoverloadsprotocolsUpdated Sep 30, 2026
  • #4590

    `Container[Flag] | Flag` does not accept Flag

    buggenericsprotocolsenumsregressionUpdated Sep 30, 2026
  • #3605

    Support "correlated" uses of constrained typevar parameters

    narrowinggenericsconstrained-typevarsUpdated Sep 30, 2026
  • #4593

    "invalid-assignment" with `operator.mul` but not multiplication operator

    buggenericsset-theoretic typesconstraint-solverUpdated Sep 30, 2026
  • #4604

    `project.dependency_metadata` calls `system` APIs

    buguvUpdated Sep 30, 2026
  • #4628

    Bounded callable return accepts an unconstrained type variable alongside a recursive alias

    buggenericsunsoundnessUpdated Sep 30, 2026
  • #4627

    Bounded callable return accepts a caller-fixed type variable alongside an inferred variable

    buggenericsunsoundnessUpdated Sep 30, 2026
  • #4600

    Divergent type when an unannotated container references its items

    bugtype-inferencecyclesUpdated Sep 30, 2026

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言