Inzynierka/Lib/site-packages/numpy/_typing/_shape.py

7 lines
191 B
Python
Raw Permalink Normal View History

2023-06-02 12:51:02 +02:00
from typing import Sequence, Tuple, Union, SupportsIndex
_Shape = Tuple[int, ...]
# Anything that can be coerced to a shape tuple
_ShapeLike = Union[SupportsIndex, Sequence[SupportsIndex]]