Release Notes
Released on 2026-05-19.
Bug fixes
- Fix panic in enum literal during cycle recovery (#25237)
- Fix panic from lazy
NewTypebase expansion during cycle recovery (#25234) - Fix class-body global lookup before class binding (#25224)
- Handle aliased dict fallbacks in TypedDict unions (#25241)
- Ignore
_generate_next_value_with custom construction hooks (#25210)
LSP server
- Fix find references for
excepthandlers (#25231) - Preserve delimiters when folding expressions (#24999)
- Use incremental file walk on
.gitignorechanges (#25183)
Core type checking
- Add first-class support for enum complements (#24961)
- Allow known non-field writes on frozen dataclass subclasses (#25087)
- Ignore generic specialization in layout compatibility checks (#25178)
- Preserve short-circuit bindings in all condition consumers (#25160)
- Support class decorators (#25091)
- Support custom
_generate_next_value_methods in enums (#25196)
Contributors
Install ty 0.0.38
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.38/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.38/ty-installer.ps1 | iex"Download ty 0.0.38
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>