Release Notes
Released on 2026-12-01.
This is the first stable release of ty, our Python type checker and language server. We're now ready to recommend ty for production use to all users. See our announcement for benchmarks, examples, and an overview of the improvements since our beta-release announcement.
You can install ty with uv tool install ty@latest or use the VS Code extension.
Highlights
- ty is the fastest type checker on 16 of 18 CLI benchmark projects: 1.46× faster than Pyrefly and 3.56× faster than Zuban.
- ty now passes 95% of test files in Python's typing conformance suite, up from 29% at Beta, compared with 57% for mypy.
- Improved type inference with a new generics solver, better bidirectional inference, and more precise inference for unannotated code.
- Added built-in support for Pydantic, Django, attrs, and pytest.
- Introduced return type inference for unannotated functions.
- Simplified adoption with automatic fixes (
--fix), suppression generation (--add-ignore), and diagnostic baselines (preview). - Added preview support for PEP 723 scripts, using uv to automatically install each script's dependencies in a separate environment.
- New options for stricter type checking, including strict generic narrowing and strict equality semantics.
- New rules for stricter type checking, including checks for unsound returns, missing generic type arguments, disjoint casts and redundant conditions.
- Some of ty’s advanced typing features like intersection types can now be used in type annotations through ty-extensions.
- Added editor features including Go to Implementation, call and type hierarchies, and support for renaming files and packages.
Thank you to everyone who contributed!
Core team: @AlexWaygood, @BurntSushi, @carljm, @dcreager, @dhruvmanila, @Gankra, @ibraheemdev, @lerebear, @MichaReiser, @mtshiba, @oconnor663, @sharkdp.
Versioning policy
As part of our commitment to stability, we're introducing a versioning policy. Patch releases will be limited to bug fixes. Minor releases may include changes to type-checking behavior that introduce new type errors.
Changes since 0.0.115
The highlights above span several beta releases. The following changes are new in 1.0.0 compared to 0.0.115.
Bug fixes
- Fix a crash in
ty check --fixwhen a diagnostic in an unchanged file points into an edited file. Both--fixand--add-ignorenow recheck the project after edits so the remaining diagnostics point to the right locations. (#31145) - Avoid treating assignments to
globalornonlocalvariables inside nested functions as class attributes. This fixes incorrect attribute types when a class inherits an attribute with the same name. (#31143) - Preserve string and bytes literals that are not covered by a sequence type when simplifying a union. This fixes incorrect errors that depended on the order of the union members. (#30996)
LSP server
- Avoid unnecessary type inference when finding references, renaming symbols, or highlighting references by skipping strings that cannot contain the requested name. (#30681)
Performance improvements
- Prepare edits for
ty check --fixandty check --add-ignorein parallel when multiple files need changes. (#31146)
Memory usage improvements
- Reduce allocations when parsing quoted annotations and other standalone expressions. (#31159)
- Reduce allocations when inferring arguments for calls to overloaded functions. (#31164)
Install ty 1.0.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/1.0.0/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/1.0.0/ty-installer.ps1 | iex"Download ty 1.0.0
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo astral-sh/tyYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>