Immutable
release. Only release title and notes can be modified.
Release Notes
Released on 2026-07-23.
Core type checking
- Handle generic stringified PEP 613 (
typing.TypeAlias) type aliases (#27092) - Allow equality narrowing across non-final classes (#27031)
- Allow interpolated string literals to be promoted to
str(#27104) - Fix double specialization of generic type aliases (#27058)
- Fix intersections of
typeandTypeForm(#27099) - When narrowing from a
matchstatement leads a variablexto be inferred asA & B, infer the type ofx.attras<type of A.attr> & <type of B.attr>(#27103)
Library support
- Pydantic: Stricter validation of sub-model fields in lax mode (#27091)
- Pydantic: Support special underscore parameters in
BaseSettingsmodels (#27098)
Performance
- Avoid exponential narrowing of optional dynamic
matchsubjects (#27100) - Avoid normalizing cached absolute file paths (#26998)
Contributors
Install ty 0.0.63
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.63/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.63/ty-installer.ps1 | iex"Download ty 0.0.63
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>