Release Notes
Released on 2025-12-23.
Bug fixes
- FIx panic from unexpanded type aliases in implicit tuple aliases (#22015)
- Support
type[T]whereTis a type alias to a union of types (#22115) - Support
==narrowing for tuples in unions with disjoint types (#22129) - Respect debug text interpolation in f-strings (#22151)
- Fix panic from unstable union-type ordering in fixed-point iteration (#22070)
LSP server
- Add
ty.configurationandty.configurationFileoptions (#22053) - Add
diagnosticMode: offto disable diagnostics while retaining Go To Definition, etc. (#22073) - Set flag to avoid
type[T@f]being inserted when you double-click on the inlay (#22139) - Use Markdown for completions documentation if the LSP client supports it (#21752)
CLI
- Abort printing diagnostics when pressing
Ctrl+C(#22083)
Configuration
- Add
respect-type-ignore-commentsconfiguration option (#22137) - Support custom builtins via
__builtins__.pyi(#22021)
Other changes
- Bind self with instance in
__get__(#22155) - Support type inference between protocol instances (#22120)
- Synthesize a precise
_fieldsattribute for NamedTuples (#22163) - Synthesize a precise
_replacemethod for NamedTuples (#22153) - Narrow "tagged unions" of
TypedDicts (#22104)
Contributors
Install ty 0.0.6
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.6/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ty/releases/download/0.0.6/ty-installer.ps1 | iex"