tree: 2384248476b0276cf0ac5db390316e610e274124
  1. shape_extensions/
  2. LICENSE
  3. pyproject.toml
  4. README.md
tensor-shapes/pyrefly-shape-extensions/README.md

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

The package is versioned in lockstep with Pyrefly.