Immutable
release. Only release title and notes can be modified.
Release Notes
Released on 2026-07-09.
Bug fixes
- Fix protocol matching for class variables (#26669)
- Fix reflected binary dispatch for runtime classes (#26623)
- Support cached properties in protocols (#26681)
Diagnostics
- Add assignability context to upper-bound diagnostics (#26645)
- Add blanket ignore comment rule (#26426)
- Improve protocol attribute diagnostic context (#26644)
Library support
- Pydantic: Add fields from mixin classes (#26631)
- Pydantic: Add support for
validate_by_{name,alias}(#26598) - Pydantic: Add support for
validation_alias(#26629) - Pydantic: Fix float conversion in unions (#26655)
- Pydantic: Ignore private attributes (#26630)
- Pydantic: Make
BaseSettingsfields optional by default (#26628) - Pydantic: Recognize frozen models via config (#26648)
- Pydantic: Support dict model configurations (#26632)
- Pydantic: Support validation of
RootModelfields (#26634) - Pydantic: Understand ellipsis as providing no default value (#26637)
Core type checking
- Gate membership narrowing on
__contains__semantics (#25964) - Handle callable classes in solver (#26090)
- Infer
ModuleType.__doc__asstrin the presence of a docstring (#26505) - Infer metaclass-declared attributes on class instances (#26512)
- Respect user stub overlays during module resolution (#26123)
Performance
Contributors
Install ty 0.0.58
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.58/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.58/ty-installer.ps1 | iex"Download ty 0.0.58
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>