소개
Rust로 작성된 매우 빠른 Python 타입 검사기이자 언어 서버입니다.
기타 프로젝트What you can do
- 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
측정된 스타 증가
- in 24h
- +161
- in 7 days
- +237
- in 15 days
- +282
- in 1 month
- +373
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalty
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.
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:
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
Can upgrading ty introduce new type errors?
Yes. Minor releases can report new type errors. See the versioning policy for details.
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.
관련 프로젝트 살펴보기
불러오는 중…