summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-04-23 13:56:01 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2021-04-23 13:56:01 +0200
commitde084798dd7cf4646d9b17d5302b0dba93bbbc4b (patch)
treedd543ab33adc7dffb97020429247a5ab39f1d735
parentda6952f507463cf1d4f4e54cecd9e47ed5e854fb (diff)
downloadnumpy-de084798dd7cf4646d9b17d5302b0dba93bbbc4b.tar.gz
MAINT: Add `void.__getitem__` and `__setitem__`
-rw-r--r--numpy/__init__.pyi2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi
index 08050a524..b9909b2f0 100644
--- a/numpy/__init__.pyi
+++ b/numpy/__init__.pyi
@@ -2963,6 +2963,8 @@ class void(flexible):
def setfield(
self, val: ArrayLike, dtype: DTypeLike, offset: int = ...
) -> None: ...
+ def __getitem__(self, key: SupportsIndex) -> Any: ...
+ def __setitem__(self, key: SupportsIndex, value: ArrayLike) -> None: ...
void0 = void