Skip to main content

Shape typing primitives and DSL for Pyrefly tensor shape tracking

Project description

pyrefly-shape-extensions

Runtime helpers for Pyrefly tensor shape annotations.

This package provides the lightweight shape_extensions module used by Pyrefly's tensor shape stubs. It defines runtime no-op versions of the shape typing primitives so annotations such as Tensor[B, T], TypeVar("B"), and assert_shape(x, (2, 3)) can be evaluated by Python while Pyrefly uses the corresponding stubs for static shape checking.

The package is versioned in lockstep with Pyrefly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrefly_shape_extensions-1.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrefly_shape_extensions-1.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrefly_shape_extensions-1.1.1.tar.gz.

File metadata

  • Download URL: pyrefly_shape_extensions-1.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrefly_shape_extensions-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5b3c7ac8a0fa57c250d988e702438f7541cacea9ba88e742db218aad97c0728f
MD5 18f6c4921f6716f62cea4d569cd355da
BLAKE2b-256 1d6072887a8e41ed551664046a717d383793efdf0140823329e8221c51ec2bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly_shape_extensions-1.1.1.tar.gz:

Publisher: publish_shape_stubs.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly_shape_extensions-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrefly_shape_extensions-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2aa64592ac5a145357f984626f3a27d0eb092146c412296df50a9523b4fd1f61
MD5 a7b0b6a9400a2aa984caf8cab8613b7a
BLAKE2b-256 02f595ea33b412dbbfe3c16a52d0697aecfcb0b18ddcee604ec0736b1c321358

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly_shape_extensions-1.1.1-py3-none-any.whl:

Publisher: publish_shape_stubs.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page