Release Notes
Released on 2025-12-24.
Bug fixes
- Fix classification of modules in
import x as yfor semantic syntax highlighting (#22175) - Fix module resolution on network drives (#22173)
- Render the entire diagnostic message in all output formats (#22164)
Other changes
- Add a dedicated diagnostic for TypedDict deletions (#22123)
- Check
__delitem__instead of__getitem__fordel x[k](#22121) - Fix
@staticmethodcombined with other decorators incorrectly bindingself(#22128) - Fix implementation of
Top[Callable[..., object]](#22145) - Improve diagnostic when
callableis used in a type expression instead ofcollections.abc.Callableortyping.Callable(#22180) - Improve diagnostic when a user tries to access a function attribute on a
Callabletype (#22182) - Include the specialization of a generic
TypedDictas part of its display (#22174) - Support tuple narrowing based on member checks (#22167)
- Synthesize
__delitem__for TypedDict to allow deleting non-required keys (#22122)
Contributors
Install ty 0.0.7
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.7/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ty/releases/download/0.0.7/ty-installer.ps1 | iex"