Skip to main content

Pyrefly einops shape stubs

This package is a PEP 561 stub-only distribution for einops. It provides shape-aware annotations for rearrange, reduce, repeat, and einsum using Pyrefly's type-level shape DSL. The einops.layers.torch Rearrange and Reduce modules preserve the constructor pattern and axis lengths across calls.

The precise annotations currently target PyTorch. The runtime corpus also exercises NumPy and JAX to validate that the shared einops pattern semantics agree across backends.

TODO: Once Pyrefly supports a MapShape type operator, make the annotations generic over array libraries while preserving the input's nominal array type.

Literal axes_lengths keyword arguments are carried into the shape rules, so named input splits and repeated output axes remain tracked. Dynamically unpacked mappings preserve the known rank but use gradual dimensions for unknown axis lengths.

Run the static tests with:

python3 tensor-shapes/pyrefly-einops-stubs/run_pyrefly.py --buck

Metadata

Release files for pyrefly-einops-stubs 1.4.0

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-einops-stubs 1.4.0
File Size Uploaded Provenance Actions
pyrefly_einops_stubs-1.4.0.tar.gz 3.3 kB With provenance Details for pyrefly_einops_stubs-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrefly-einops-stubs 1.4.0
File Interpreter ABI Platform Actions
pyrefly_einops_stubs-1.4.0-py3-none-any.whl Python 3 none any Details for pyrefly_einops_stubs-1.4.0-py3-none-any.whl

Total release size: 9.0 kB

Release files / pyrefly_einops_stubs-1.4.0.tar.gz

Download URL pyrefly_einops_stubs-1.4.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6ca201d2179f2ed4d00e9bedca11450b15da3d23ae4cd27c03cabceb686243
BLAKE2b-256 checksum
How to use checksums
dd292847638593f090d95b4812ed1dd71d9c39166ffc10fda620462c3435e22e
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 Oct 15, 2026.

Transparency log

Release files / pyrefly_einops_stubs-1.4.0-py3-none-any.whl

Download URL pyrefly_einops_stubs-1.4.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
332a391b639bdacdac7949ddbc75f64caa4f084cf910f4ccc5415f36fc4f008b
BLAKE2b-256 checksum
How to use checksums
a910d5732dc865234621cc2b0a70a1203dfd33dee2b7ccec5370f43ccc6d6805
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 Oct 15, 2026.

Transparency log

Security for pyrefly-einops-stubs 1.4.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyrefly_einops_stubs-1.4.0.tar.gz

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 Oct 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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