From 7739583f5fb39c31e83010a3153fa078004e55eb Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Fri, 18 Mar 2022 17:09:56 +0100 Subject: MAINT: Split `numpy.typing` into a public and private component i.e. `numpy.typing` and `numpy._typing` --- numpy/_typing/_shape.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 numpy/_typing/_shape.py (limited to 'numpy/_typing/_shape.py') 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]] -- cgit v1.2.1