diff options
Diffstat (limited to 'numpy/_typing/_shape.py')
-rw-r--r-- | numpy/_typing/_shape.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/_typing/_shape.py b/numpy/_typing/_shape.py new file mode 100644 index 000000000..c28859b19 --- /dev/null +++ b/numpy/_typing/_shape.py @@ -0,0 +1,6 @@ +from typing import Sequence, Tuple, Union, SupportsIndex + +_Shape = Tuple[int, ...] + +# Anything that can be coerced to a shape tuple +_ShapeLike = Union[SupportsIndex, Sequence[SupportsIndex]] |