diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2022-03-25 09:40:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 09:40:49 -0600 |
commit | 266aad7478bc7fbcc55eea7f942a0d373b838396 (patch) | |
tree | 0f144df0739b772bf1a38b3e03463c6b4eb21d91 /numpy/_typing/_shape.py | |
parent | 4115eead62a382a32afdb0450c54e0249db02915 (diff) | |
parent | 65ec64c932626689b50b53e0909ced47f5a821fa (diff) | |
download | numpy-266aad7478bc7fbcc55eea7f942a0d373b838396.tar.gz |
Merge pull request #21216 from BvB93/_typing
MAINT: Split `numpy.typing` into a public and private component
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]] |