Release Notes
Released on 2025-12-20.
Bug fixes
- Fix debug-mode server panic when a user typed a class definition by ensuring class arguments are visited in source order for semantic tokens (#22063)
LSP server
- Classify docstrings in semantic tokens during syntax highlighting (#22031)
CLI
Other changes
- Add support for
dict(...)calls inTypedDictcontexts (#22113) - Speedup bidirectional type-checking involving large unions by avoiding narrowing on non-generic calls (#22102)
- Simplify inferred types by avoiding storing multi-inference attempts (#22062, #22103)
- Improve union builder performance (#22048)
- Only prefer declared types in non-covariant positions (#22068)
- Respect intersections in iterations (#21965)
- Sync vendored typeshed stubs (#22091). Typeshed diff
- Understand that the type of
Xon an enum class will beintifXis defined usingenum.nonmemberin the class definition (#22025)
Contributors
Install ty 0.0.5
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.5/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ty/releases/download/0.0.5/ty-installer.ps1 | iex"