pypi ty 0.0.86

4 hours ago

Release Notes

Released on 2026-10-09.

The executables in our macOS and Windows release archives and ty wheels are now code-signed. macOS executables are signed with an Apple Developer ID certificate and notarized by Apple. Windows executables have timestamped Authenticode signatures from Azure Artifact Signing. This enables verification of the release publisher and binary integrity, supports publisher-based allowlisting, and should reduce security warnings and antivirus false positives.

Bug fixes

  • Infer empty collection branches from nonempty literals (#29131)
  • Invalidate dependency metadata when environments change (#29126)
  • Preserve final attribute restrictions on composite types (#29135)
  • Preserve recursive structure in Annotated values (#29058)
  • Specialize inherited dataclass field converters (#29192)

LSP server

  • Show documentation for annotation operators on hover (#29185)

Core type checking

  • Check attribute and property override types (#28556)
  • Narrow tuple unions through truthiness and type checks (#29125)
  • Preserve literal types when consuming dictionary literals (#29145)
  • Preserve non-boolean comparison results for intersections (#28045)
  • Preserve receiver specializations when calling unions of bound methods (#29015)
  • Represent uninhabited truthiness explicitly (#28843)
  • Solve validity type context through constraint sets (#28909)

Performance

  • Avoid recursion guards for non-generic nominal targets (#29202)
  • Check exact exclusions before intersection positives (#29195)

Memory usage improvements

  • Share constraints in retained sequent maps (#28966)

Other changes

  • Update the default Python version to 3.15 (#28792)
  • Update to Unicode 17 (#21229, #28784)
  • Always show fixes in the CLI (#27810)

Contributors

Install ty 0.0.86

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

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

Download ty 0.0.86

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-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
ty-riscv64gc-unknown-linux-gnu.tar.gz RISCV 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

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo astral-sh/ty

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>

Don't miss a new ty release

NewReleases is sending notifications on new releases.