Release Notes
Released on 2026-03-13.
Bug fixes
- Fix false-positive diagnostics for PEP-604 union annotations on attribute targets on Python 3.9 when
from __future__ import annotationsis active (#23915) dataclass_transform: Respectkw_onlyoverwrites in dataclasses (#23930)- Fix too-many-cycle panics when inferring loop variables with
Literaltypes (#23875)
Server
- Fix folding range classification of lines starting with
#(#23831) - Fix folding ranges for notebooks (#23830)
Core type checking
- Split errors for possibly missing submodules into a new
possibly-missing-submoduleerror code (enabled by default), and makepossibly-missing-attributeignored by default (#23918) - Improve handling of bidirectional inference when (#23844)
- Fix inference of conditionally defined properties (#23925)
Improvements to diagnostics
- Clarify in diagnostics that
from __future__ import annotationsonly stringifies type annotations (#23928)
Performance improvements
- Avoid duplicated work during multi-inference (#23923)
Contributors
Install ty 0.0.23
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.23/ty-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ty/releases/download/0.0.23/ty-installer.ps1 | iex"