Skip to main content

pyrefly-numpy-stubs

NumPy type stubs with array shape information for Pyrefly.

This package installs numpy-shape-stubs, a Pyrefly-specific stub package for runtime numpy. Pyrefly discovers it by default; set use-shape-comments-and-stubs = false to opt out. Other type checkers ignore these stubs and continue using NumPy's ordinary types.

The package is versioned in lockstep with Pyrefly and depends on the matching pyrefly-shape-extensions package. Installing it also installs numpy, which provides upstream modules used by these partial stubs. The numpy dependency is unpinned, so projects can choose their own NumPy version.

Static checks use NumPy's installed stubs for APIs that this package re-exports:

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

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

Metadata

Release files for pyrefly-numpy-stubs 1.5.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-numpy-stubs 1.5.1
File Size Uploaded Provenance Actions
pyrefly_numpy_stubs-1.5.1.tar.gz 21.5 kB With provenance Details for pyrefly_numpy_stubs-1.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 45.7 kB

Release files / pyrefly_numpy_stubs-1.5.1.tar.gz

Download URL pyrefly_numpy_stubs-1.5.1.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce381a012e5eeb9657355e563b28bccbfb98478c15e8df6579628515d05778bd
BLAKE2b-256 checksum
How to use checksums
5ec7e479d7bf3a89ce8dcc43080a9d4193d7f9236b4e2e4a6100baec5442d372
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 Nov 30, 2026.

Transparency log

Release files / pyrefly_numpy_stubs-1.5.1-py3-none-any.whl

Download URL pyrefly_numpy_stubs-1.5.1-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8867c62f39aad65c0d2d16597393345db88a6467bf428f7a8d8775fb515cedda
BLAKE2b-256 checksum
How to use checksums
e427d196e34125b1b65e8ca2b0817894f0207283a407472c4366d7a8b9cf9b49
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 Nov 30, 2026.

Transparency log

Security for pyrefly-numpy-stubs 1.5.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyrefly_numpy_stubs-1.5.1.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 Nov 30, 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