Release Notes
Released on 2025-10-29.
Bug fixes
- Fix bug where ty would think all types had an __mro__attribute (#20995)
- Fix rare panic with highly cyclic TypeVardefinitions (#21059)
- Fix infinite recursion with generic type aliases (#20969)
- Add missing newline before first diagnostic in CLI output (#21058)
- Make the ty server's auto-import feature skip symbols in the current module (#21100)
- Don't provide goto-definition for definitions which are not reexported in builtins (#21127)
- Avoid duplicate diagnostics during multi-inference of standalone expressions (#21056)
Type inference and diagnostics
- Use constructor parameter types as context to inform solving type variables (#21054)
- Consider __len__when determining the truthiness of an instance of a tuple class or a@finalclass (#21049)
- Delegate truthiness inference of an enum Literaltype to its enum-instance supertype (#21060)
- Improve invalid-argument-typediagnostics where a union type was provided (#21044)
LSP server
- Suggest type_check_onlyitems last in completions (#20910)
- Render import <...>in completions when "label details" isn't supported (#21109)
- Update workspace diagnostic progress every 50ms (#21019)
CLI
- Add --no-progressoption to suppress the rendering of a progress bar (#21063)
Contributors
Install ty 0.0.1-alpha.25
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.1-alpha.25/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ty/releases/download/0.0.1-alpha.25/ty-installer.ps1 | iex"