pypi ty 0.0.76

3 hours ago

Release Notes

Released on 2026-08-31.

Preview features

  • Add a missing-direct-dependency rule (#28001)
  • Cancel superseded queued uv requests (#28108)
  • Check direct dependencies in PEP 723 scripts (#28136)
  • Fix Goto definition in script dependencies (#27747)
  • Move script environment initialization to the CLI and LSP (#28038)
  • Refresh uv project metadata in the background (#27933)
  • Synchronize PEP 723 script environments in the language server (#27619)
  • Warn when uv metadata cannot support dependency checks (#28133)

Bug fixes

  • Avoid panics on incomplete protocol type parameter lists (#28088)
  • Fix auto-completion panic involving bare declarations (#28191)
  • Guard recursive meta-type expansion (#28143)
  • Preserve parentheses when removing redundant casts (#28092)

LSP server

  • Add "Find references" support for pytest fixtures (#28075)
  • Highlight PEP 723 script metadata as TOML (#27746)
  • Synchronize saved script metadata on open (#27873)

Core type checking

  • Apply mixin specialization when validating enum members (#28101)
  • Bind Self through generic type aliases (#28117)
  • Infer lambda parameters through callable type aliases (#28109)
  • Intersection simplifications with subtype-related generic specializations (#26880)
  • Invalidate member narrowing across loop iterations (#28009)
  • Narrow functional enum members in == and match (#28103)
  • Only treat recursive types with unbounded specializations as fallback cycles (#27538)
  • Preserve Final variance in stubs (#28119)
  • Preserve inferred types for unknown class-decorator results (#28067)
  • Preserve list literal positions in starred unpacking (#28061)
  • Preserve short-circuit reachability for direct conditions (#28082)
  • Preserve type variables in bounded generic defaults (#28122)
  • Reject circular type alias definitions (#28140)
  • Reject class access to generic instance attributes (#28123)
  • Use the subclass receiver when checking method overrides (#28124)
  • Validate declared variance in method signatures (#28116)

Performance

  • Avoid cubic narrowing with repeated assignments and context managers (#27787)
  • Avoid repeated traversal of shared alias arguments (#28147)
  • Reject impossible eager protocol comparisons early (#28081)

Contributors

Install ty 0.0.76

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ty/releases/download/0.0.76/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.76/ty-installer.ps1 | iex"

Download ty 0.0.76

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-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.