github astral-sh/ty 0.0.6

5 hours ago

Release Notes

Released on 2025-12-23.

Bug fixes

  • FIx panic from unexpanded type aliases in implicit tuple aliases (#22015)
  • Support type[T] where T is a type alias to a union of types (#22115)
  • Support == narrowing for tuples in unions with disjoint types (#22129)
  • Respect debug text interpolation in f-strings (#22151)
  • Fix panic from unstable union-type ordering in fixed-point iteration (#22070)

LSP server

  • Add ty.configuration and ty.configurationFile options (#22053)
  • Add diagnosticMode: off to disable diagnostics while retaining Go To Definition, etc. (#22073)
  • Set flag to avoid type[T@f] being inserted when you double-click on the inlay (#22139)
  • Use Markdown for completions documentation if the LSP client supports it (#21752)

CLI

  • Abort printing diagnostics when pressing Ctrl+C (#22083)

Configuration

  • Add respect-type-ignore-comments configuration option (#22137)
  • Support custom builtins via __builtins__.pyi (#22021)

Other changes

  • Bind self with instance in __get__ (#22155)
  • Support type inference between protocol instances (#22120)
  • Synthesize a precise _fields attribute for NamedTuples (#22163)
  • Synthesize a precise _replace method for NamedTuples (#22153)
  • Narrow "tagged unions" of TypedDicts (#22104)

Contributors

Install ty 0.0.6

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ty/releases/download/0.0.6/ty-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ty/releases/download/0.0.6/ty-installer.ps1 | iex"

Download ty 0.0.6

File Platform Checksum
ty-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
ty-x86_64-apple-darwin.tar.gz Intel macOS checksum
ty-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
ty-i686-pc-windows-msvc.zip x86 Windows checksum
ty-x86_64-pc-windows-msvc.zip x64 Windows checksum
ty-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
ty-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
ty-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum
ty-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
ty-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
ty-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
ty-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
ty-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
ty-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
ty-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
ty-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
ty-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum

Don't miss a new ty release

NewReleases is sending notifications on new releases.