pypi ty 1.0.0

12 minutes ago

Release Notes

Released on 2026-12-01.

This is the first stable release of ty, our Python type checker and language server. We're now ready to recommend ty for production use to all users. See our announcement for benchmarks, examples, and an overview of the improvements since our beta-release announcement.

You can install ty with uv tool install ty@latest or use the VS Code extension.

Highlights

Thank you to everyone who contributed!

Core team: @AlexWaygood, @BurntSushi, @carljm, @dcreager, @dhruvmanila, @Gankra, @ibraheemdev, @lerebear, @MichaReiser, @mtshiba, @oconnor663, @sharkdp.

Versioning policy

As part of our commitment to stability, we're introducing a versioning policy. Patch releases will be limited to bug fixes. Minor releases may include changes to type-checking behavior that introduce new type errors.

Changes since 0.0.115

The highlights above span several beta releases. The following changes are new in 1.0.0 compared to 0.0.115.

Bug fixes

  • Fix a crash in ty check --fix when a diagnostic in an unchanged file points into an edited file. Both --fix and --add-ignore now recheck the project after edits so the remaining diagnostics point to the right locations. (#31145)
  • Avoid treating assignments to global or nonlocal variables inside nested functions as class attributes. This fixes incorrect attribute types when a class inherits an attribute with the same name. (#31143)
  • Preserve string and bytes literals that are not covered by a sequence type when simplifying a union. This fixes incorrect errors that depended on the order of the union members. (#30996)

LSP server

  • Avoid unnecessary type inference when finding references, renaming symbols, or highlighting references by skipping strings that cannot contain the requested name. (#30681)

Performance improvements

  • Prepare edits for ty check --fix and ty check --add-ignore in parallel when multiple files need changes. (#31146)

Memory usage improvements

  • Reduce allocations when parsing quoted annotations and other standalone expressions. (#31159)
  • Reduce allocations when inferring arguments for calls to overloaded functions. (#31164)

Install ty 1.0.0

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

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

Download ty 1.0.0

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.