summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2021-09-02 16:10:01 +0200
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2021-09-02 16:28:17 +0200
commit15dc945ba7bd18da65396a20b8368bcb721e28fc (patch)
treef4945cab30d45f4cd018056753c66bb62844a0db
parent0275d624cf2d980faca5829c2a4147cf4c8becf7 (diff)
downloadnumpy-15dc945ba7bd18da65396a20b8368bcb721e28fc.tar.gz
MAINT: Make the `_SupportsGetItem` protocol positional-only
-rw-r--r--numpy/lib/npyio.pyi2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.pyi b/numpy/lib/npyio.pyi
index edf3daf07..4841e9e71 100644
--- a/numpy/lib/npyio.pyi
+++ b/numpy/lib/npyio.pyi
@@ -53,7 +53,7 @@ _DTypeLike = Union[
]
class _SupportsGetItem(Protocol[_T_contra, _T_co]):
- def __getitem__(self, key: _T_contra) -> _T_co: ...
+ def __getitem__(self, key: _T_contra, /) -> _T_co: ...
class _SupportsRead(Protocol[_CharType_co]):
def read(self) -> _CharType_co: ...