Skip to main content

pyrefly-torch-stubs

PyTorch type stubs with tensor shape information for Pyrefly.

This package is a PEP 561 stub-only distribution. It installs the torch-stubs stub package so Pyrefly can discover shape-aware stubs for the runtime torch package without replacing or shadowing PyTorch itself.

The package is versioned in lockstep with Pyrefly and depends on the matching pyrefly-shape-extensions package.

Static checks use the installed Torch package for modules that this package intentionally leaves unshaped:

python3 tensor-shapes/pyrefly-torch-stubs/run_pyrefly.py

The runner uses ~/.tensor-shapes-venv by default. Set $TENSOR_SHAPES_VENV to select another virtualenv, or pass --python with an interpreter from a virtualenv that has Torch installed.

Metadata

Release files for pyrefly-torch-stubs 1.3.1

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-torch-stubs 1.3.1
File Size Uploaded
pyrefly_torch_stubs-1.3.1.tar.gz 45.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrefly-torch-stubs 1.3.1
File Interpreter ABI Platform
pyrefly_torch_stubs-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 99.0 kB

Release files / pyrefly_torch_stubs-1.3.1.tar.gz

Download URL pyrefly_torch_stubs-1.3.1.tar.gz
Size 45.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d6ed36cb070e30100278be4c8f2e490fbb3e1695fe3a2e898e250d0c27bf3a83
BLAKE2b-256 checksum
How to use checksums
801c86d424c8f3c8c065099dd159aae552c422c334876583c69de2aaf8b99d58
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 15, 2026.

Transparency log

Release files / pyrefly_torch_stubs-1.3.1-py3-none-any.whl

Download URL pyrefly_torch_stubs-1.3.1-py3-none-any.whl
Size 53.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc74d6f816b052696878631c9515650820ef85eb4933e8e031e9217d1660876f
BLAKE2b-256 checksum
How to use checksums
0477880bd19b9837483beb7649df666bf782fdb4f3f2d43d0304f0307e9dee19
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 15, 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