summaryrefslogtreecommitdiff
path: root/numpy/_typing/_shape.py
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2022-03-18 17:09:56 +0100
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2022-03-18 18:29:54 +0100
commit7739583f5fb39c31e83010a3153fa078004e55eb (patch)
tree23435d5de3f1870bc664354d50524b7166c2587a /numpy/_typing/_shape.py
parenta8f9711493adee93fa3d61e7ef1bee11d7055a85 (diff)
downloadnumpy-7739583f5fb39c31e83010a3153fa078004e55eb.tar.gz
MAINT: Split `numpy.typing` into a public and private component
i.e. `numpy.typing` and `numpy._typing`
Diffstat (limited to 'numpy/_typing/_shape.py')
-rw-r--r--numpy/_typing/_shape.py6
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]]