Release Notes
Released on 2025-12-09.
Bug fixes
- Fix assignability problem between
tuple[Any, ...]andtuple[int, *tuple[int, ...]](#21803) - Avoid diagnostic when
typing_extensions.ParamSpecuses adefaultparameter (#21839) - Avoid crash for invalid
Annotatedsubscript (#21837) - Avoid crash for invalid
Finalsubscript (#21828) - Fix overload filtering to prefer more precise match when
*args: Anyis involved (#21859) - Handle various invalid explicit specializations for
ParamSpec(#21821) - Fix stack overflow with recursive generic protocols (depth limit) (#21858)
LSP server
- Add autocomplete suggestions for parameters in function calls (#21796)
- Don't create a related diagnostic for the primary annotation of sub-diagnostics (#21845)
- Stabilize auto-import (#21851)
- Suppress inlay hints when assigning a trivial initializer call (#21848)
- Use concise message for LSP clients not supporting related diagnostic information (#21850)
- Fix add-import action for
reveal_type(#21668)
Core type checking
- Infer type variables within generic unions (#21862)
- Type inference for
@asynccontextmanager(#21876) - Make Python-version subdiagnostics less verbose (#21849)
Contributors
- @BurntSushi
- @dhruvmanila
- @AlexWaygood
- @carljm
- @Gankra
- @charliermarsh
- @RasmusNygren
- @sharkdp
- @MichaReiser
Install ty 0.0.1-alpha.33
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.1-alpha.33/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.33/ty-installer.ps1 | iex"