Repository navigation
Immutable
release. Only release title and notes can be modified.
Release Notes
Released on 2026-11-26.
Bug fixes
- Fix a crash when pressing Ctrl+C just after saving a watched file.
ty check --watchnow exits with the usual interrupt status 130. (#29976)
Performance improvements
- Check assignments faster by looking up type annotations and imported
Finalqualifiers together. (#30797) - Simplify unions of fixed-length tuples faster when a pair of elements at any matching position contains disjoint literals or distinct class objects, as in Django’s registry for arithmetic expressions. (#30940)
- Speed up control flow analysis for type narrowing and reachability, especially in files with large wildcard imports such as
from OpenGL.GL import *. (#30790) - Infer types faster for collections of functions such as Jinja’s filter registry. When each function has a single standard signature, ty can rule out a match if required parameters at the same position accept different keyword names or if one function requires more positional arguments than the other accepts. (#30858)
- Infer type arguments faster, including element types for list literals. ty uses a single lower bound directly and removes duplicate types after selecting the bounds relevant to inference or validation. (#30786)
- Speed up checks of modules and functions without
Finaldeclarations by skipping the search forFinalnames that never receive a value. (#30946)
Core type checking
- Use the input type of an attrs
@field_name.convertermethod when checking generated constructor arguments and field assignments. Reading the field gives its declared type. If several converters are registered, the first one determines the accepted input type. (#30959) - Recognize
__attrs_attrs__as a tuple of field metadata on attrs classes and instances. ty also recognizes the attribute afterattrs.hasnarrows a class totype[AttrsInstance]. (#30958) - Report
invalid-argument-typewhenattrs.fieldsorattrs.asdictreceives an argument that lacks the__attrs_attrs__member required by theAttrsInstanceprotocol. (#30958)
Contributors
Install ty 0.0.112
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.112/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.112/ty-installer.ps1 | iex"Download ty 0.0.112
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>