Release Notes
Released on 2026-05-14.
Bug fixes
- Fix Go To-Definition for self-imported submodules (#25106)
- Fix
ClassVar[Self]assignment checks for class objects (#24657) - Fix attribute access on
Callable-bounded TypeVars (#24793) - Fix panic from TypedDict schema cycle with
Selffields (#25094) - Fix panic from accessing
args[0]forstatic_assert(#25149) - Fix panic from non-name walrus target access (#25121)
- Fix singleton classification for runtime typing objects (#25099)
- Guard self-referential
TypeOfrecursion in generic callables (#24668) - Preserve lexical ParamSpec scope for returned Callable annotations (#24909)
- Preserve walrus bindings through negated short-circuit conditions (#25163)
- Run full iteration analysis on narrowed typevars (#25143)
LSP server
- Classify TypeVar semantic tokens as type parameters (#24891)
- Emit folding ranges for an entire block (#25113)
- Respect the
includeDeclarationrequest parameter (#24960) - Support TypedDict key completions in incomplete, anonymous contexts (#25147)
Performance
- Bound loop-header analysis for large loops (#24972)
- Convert inference hash maps to boxed slices on finish (#25102)
Core type checking
- Add support for sentinel values (PEP 661) (#25082)
- Hoist path assignment implication checks (#25107)
- Preserve TypedDict keys through dict unpacking (#24523)
- Treat custom enum
__new__values as dynamic (#25136)
Contributors
Install ty 0.0.36
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.36/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.36/ty-installer.ps1 | iex"Download ty 0.0.36
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>