_shape.py 231 B

1234567
  1. from collections.abc import Sequence
  2. from typing import SupportsIndex, TypeAlias
  3. _Shape: TypeAlias = tuple[int, ...]
  4. # Anything that can be coerced to a shape tuple
  5. _ShapeLike: TypeAlias = SupportsIndex | Sequence[SupportsIndex]