Skip to main content
Pre-release

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

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

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

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / pyrefly_einops_stubs-1.4.0.dev4.tar.gz

Download URL pyrefly_einops_stubs-1.4.0.dev4.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b66155c2f217132a3ec95a13c43d905a519cb1319861fa6d9ab7da759134155c
BLAKE2b-256 checksum
How to use checksums
274ea3c842ab37592c932dd46a57afbd65b7ba07677e749dbcab93eac2981628
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 14, 2026.

Transparency log

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

Download URL pyrefly_einops_stubs-1.4.0.dev4-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e991581878c763dc7cae0dafcf82bcc82b581de8cc98efbc0a917833310f3d5
BLAKE2b-256 checksum
How to use checksums
c2f1454c72110c8d2533300a0fde8ac91e02f2a88072935704830ce65b81f7c0
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 14, 2026.

Transparency log

Security for pyrefly-einops-stubs 1.4.0.dev4

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.dev4.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 14, 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