Release Notes
Released on 2026-01-07.
Due to an error in our wheel metadata, this release was partially published to PyPI and manually finished. Consequently, PyPI temporarily did not include all of the artifacts and the GitHub Release was published by a maintainer instead of GitHub Actions. The artifacts from GitHub Actions were used without alteration. The GitHub release attestations for the artifacts are not available for this release.
Bug fixes
- Fix stack overflow due to too small stack size (#22433)
- Fix stale semantic tokens after opening the same document with new content (#22414)
- Fix handling of
ParamSpecin overloaded functions (#22416) - Fix comparisons and arithmetic with
NewTypes offloat(#22105) - Fix several issues with unannotated function return types (#22425)
- Fix handling of subclasses in Callables (#22411)
LSP server
- Add support for explicit markdown code fences in docstring rendering (#22373, #22408)
- Offer completions for
Twhen a value has typeUnknown | T(#22436) - Sort keyword argument completions higher (#22297)
Core type checking
- Add support for
@total_ordering(#22181, #22183) - Better simplification of intersections of tuples (#22094)
- Support comparisons between variable-length tuples (#21824)
- Emit diagnostics for method definitions and other invalid statements in
TypedDictclass bodies (#22351) - Improve type-narrowing in calls to
len()(#22330)
CLI
- Add
--add-ignoreCLI option (#21696)
Configuration
include = ["myscript"]will now checkmyscripteven though it doesn't have a Python extension (#22243)
Performance
Documentation
- Link to
Callable__name__FAQ directly fromunresolved-attributediagnostic (#22437)
Contributors
- @dhruvmanila
- @charliermarsh
- @oconnor663
- @BurntSushi
- @RasmusNygren
- @carljm
- @Gankra
- @MichaReiser
- @AlexWaygood
Install ty 0.0.10
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.10/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ty/releases/download/0.0.10/ty-installer.ps1 | iex"