3RNN/Lib/site-packages/numpy/_typing/_shape.py
2024-05-26 19:49:15 +02:00

8 lines
211 B
Python

from collections.abc import Sequence
from typing import Union, SupportsIndex
_Shape = tuple[int, ...]
# Anything that can be coerced to a shape tuple
_ShapeLike = Union[SupportsIndex, Sequence[SupportsIndex]]