Release Notes
Released on 2025-12-16.
Bug fixes
- Fix panic for stringified comprehensions and boolean expressions in type expression (#21967)
- Avoid stack overflow when determining inferable typevars (#21971)
- Fix false-positive
invalid-method-overridediagnostic on method that usesCallablewith aParamSpec(#21934) - Disallow explicit specialization of type variables themselves (#21938)
- Fix hover type on named expression ("walrus expression") targets (#21952)
LSP server
- Add "qualify ..." code fix for undefined references (#21968)
- Add new goto-definition targets on inlay hints (#21950)
- Remove invalid statement-keyword completions in
for-statements (#21979)
Core type checking
- Add support for
__qualname__and other implicit class attributes (#21966) - Emit a diagnostic when a frozen dataclass inherits a non-frozen dataclass and vice versa (#21962)
- Emit a diagnostic when a type variable with a default is followed by one without a default (#21787)
- Improve diagnostics for unsupported binary operations and unsupported augmented assignments (#21947)
- Improve check enforcing that an overloaded function must have an implementation (#21978)
- Use unqualified names for displays of
TypeAliasTypes and unboundParamSpecs/TypeVars (#21960)
Performance
- Speed up ty on Linux by using jemalloc (#21975)
Contributors
- @11happy
- @dhruvmanila
- @AlexWaygood
- @mtshiba
- @MichaReiser
- @Gankra
- @silamon
- @dcreager
- @charliermarsh
- @RasmusNygren
- @carljm
Install ty 0.0.1-alpha.35
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.1-alpha.35/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.35/ty-installer.ps1 | iex"