Skip to content

0.0.115

Latest

Choose a tag to compare

@astral-automations-bot astral-automations-bot released this 30 Nov 19:42
Immutable release. Only release title and notes can be modified.
82a4d68

Release Notes

Released on 2026-11-30.

Bug fixes

  • Fix a stack overflow when ty uses a generic function’s return annotation to infer type arguments for a call involving a recursive type alias. (#30934)
  • Fix a crash when an enum inherits a _value_ annotation that refers to one of the subclass’s own members. (#30765)
  • Use the field converter’s input type in generated attrs constructors when a validator leaves multiple attrs.field() overloads that agree on the field options. (#31131)
  • Preserve field options such as kw_only=True in constructors generated by dataclass_transform when matching field-specifier overloads differ only in the type of the default. (#31131)

Performance improvements

  • Exit sooner when a program reading ty check output closes the pipe early, as in ty check | head. (#31141)
  • Speed up one-shot ty check --update-baseline runs when memory reporting is disabled. (#31059)
  • Reduce the cost of reusing parsed Python modules during type checking. (#31008)
  • Resolve references to module-level names inside functions faster by reusing information already collected for the file. (#31125)

Core type checking

  • Allow factory_boy subclasses to redeclare nested Meta and Params configuration classes without triggering incompatible-attribute-override. ty reports missing-attribute when code tries to access these configuration classes as attributes of the resulting factory. (#30939)
  • Preserve Never field types in generated dataclass __init__ methods and, on Python 3.13 and later, in __replace__ methods. This also catches invalid arguments when a generic field is specialized to Never. (#31135)

Other changes

  • Clarify how ty names constructor parameters for private attrs fields and how converters affect accepted constructor arguments and the types of field reads. (#5149)
  • Refresh the published type checker benchmarks for ty 0.0.114 and newer versions of Pyrefly, mypy, and Zuban. (#5144, #5145)

Contributors

Install ty 0.0.115

Install prebuilt binaries via shell script

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

Download ty 0.0.115

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>