Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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], IntVar("B"), and assert_shape(x.shape, (2, 3)) can be evaluated by Python while Pyrefly uses the corresponding stubs for static shape checking.

RegularNestedList[Shape, Domain] represents regular (non-jagged) nested list literals; for example, [[1, 2], [3, 4]] binds Shape to [2, 2]. Unsupported containers and irregular literals use ordinary typing and any fallback overload supplied by the consumer.

IntTupleOrList[Values] is a stub-authoring parameter type for APIs that accept integer tuples and lists. A direct, unstarred list literal such as [2, 3] binds Values to IntTuple[2, 3]; an existing or starred list remains gradual, while a direct literal containing a non-integer is rejected.

The package is versioned in lockstep with Pyrefly.

Metadata

Release files for pyrefly-shape-extensions 1.4.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrefly-shape-extensions 1.4.0.dev2
File Size Uploaded
pyrefly_shape_extensions-1.4.0.dev2.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrefly-shape-extensions 1.4.0.dev2
File Interpreter ABI Platform
pyrefly_shape_extensions-1.4.0.dev2-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / pyrefly_shape_extensions-1.4.0.dev2.tar.gz

Download URL pyrefly_shape_extensions-1.4.0.dev2.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d4ab781b51062faea4593b825f848c588225a24307445a63c8c1343be97a021b
BLAKE2b-256 checksum
How to use checksums
bbdc7aa3ce3bd7ea150cca2db14dc26b0d8f81aa4d08c4efc90b7d19f811fcfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / pyrefly_shape_extensions-1.4.0.dev2-py3-none-any.whl

Download URL pyrefly_shape_extensions-1.4.0.dev2-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a2ad3084a3eef7d390189462eae05ae5633056ce85c8fcbd2d1adbfa1219993
BLAKE2b-256 checksum
How to use checksums
fcc7371ca62d15faeec4f20697698019b77c57f574fa6da6f96dcee2bc5a6bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page