Release Notes
Released on 2026-04-15.
Bug fixes
- Avoid panic from double inference for
namedtuple(typename=T, field_names=x, **{})(#24641) - Avoid panic from double inference with missing functional
Enum(...)names (#24638) - Avoid panic from double inference with functional
Enum(value=...)(#24639) - Fix cases where
invalid-keyfix doesn't converge, andoverride-of-final-methodproduces invalid syntax (#24649) - Fix unnecessary
ty:ignorecomments inserted by--add-ignorefor diagnostics starting on the same line (#24651)
CLI
- Add
--fixmode to enable auto-fix for diagnostics (#24097)
Performance
- Avoid excessive memory usage for dataclasses with many fields (#24620)
Core type checking
- Check inherited
NamedTuplefield conflicts (#24542) - Error when duplicate keywords are provided to TypedDict constructors (#24449)
- Respect mixed positional and keyword arguments in TypedDict constructor (#24448)
- Respect subclass shadowing for inherited NamedTuple fields (#24640)
- Skip
EnumMeta.__call__for enum constructor signatures (#24513)
Contributors
Install ty 0.0.31
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.31/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.31/ty-installer.ps1 | iex"Download ty 0.0.31
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>