summaryrefslogtreecommitdiff
path: root/numpy/typing/_array_like.py
diff options
context:
space:
mode:
authorJosh Wilson <person142@users.noreply.github.com>2020-06-15 20:57:24 -0700
committerJosh Wilson <person142@users.noreply.github.com>2020-06-15 20:57:24 -0700
commit347a368cd937b73c74ec8f684dcbaacb233ec84a (patch)
treeafebba7bd9e4d511efa43e049cc950ebb00cfed1 /numpy/typing/_array_like.py
parentc63f2333288772defcd84627986b035b6e7018ef (diff)
downloadnumpy-347a368cd937b73c74ec8f684dcbaacb233ec84a.tar.gz
DOC: add note about supporting buffer protocols in `ArrayLike`
Diffstat (limited to 'numpy/typing/_array_like.py')
-rw-r--r--numpy/typing/_array_like.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/typing/_array_like.py b/numpy/typing/_array_like.py
index b73585cf0..a4c526778 100644
--- a/numpy/typing/_array_like.py
+++ b/numpy/typing/_array_like.py
@@ -24,4 +24,9 @@ if TYPE_CHECKING or HAVE_PROTOCOL:
else:
_SupportsArray = Any
+# TODO: support buffer protocols once
+#
+# https://github.com/python/typing/issues/593
+#
+# is resolved.
ArrayLike = Union[bool, int, float, complex, _SupportsArray, Sequence]