summaryrefslogtreecommitdiff
path: root/numpy/typing
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2022-01-27 13:42:47 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2022-01-27 14:24:38 +0100
commit1737a79dfa00894ef3fa48b556540daff05300e8 (patch)
tree72b8266c61f67b3a3cc6fc07fe86b09f3bc04a0c /numpy/typing
parentdf80af3da6cb7b71a140528db5a8bb11360e5452 (diff)
downloadnumpy-1737a79dfa00894ef3fa48b556540daff05300e8.tar.gz
MAINT: Allow `flatiter.__getitem__` to accept 1-tuples
Diffstat (limited to 'numpy/typing')
-rw-r--r--numpy/typing/tests/data/reveal/flatiter.pyi2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/typing/tests/data/reveal/flatiter.pyi b/numpy/typing/tests/data/reveal/flatiter.pyi
index ef89acb58..61e8a3e91 100644
--- a/numpy/typing/tests/data/reveal/flatiter.pyi
+++ b/numpy/typing/tests/data/reveal/flatiter.pyi
@@ -13,5 +13,7 @@ reveal_type(a[0]) # E: str_
reveal_type(a[[0, 1, 2]]) # E: ndarray[Any, dtype[str_]]
reveal_type(a[...]) # E: ndarray[Any, dtype[str_]]
reveal_type(a[:]) # E: ndarray[Any, dtype[str_]]
+reveal_type(a[(...,)]) # E: ndarray[Any, dtype[str_]]
+reveal_type(a[(0,)]) # E: str_
reveal_type(a.__array__()) # E: ndarray[Any, dtype[str_]]
reveal_type(a.__array__(np.dtype(np.float64))) # E: ndarray[Any, dtype[{float64}]]