summaryrefslogtreecommitdiff
path: root/numpy/typing/_nested_sequence.py
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-10-05 14:20:38 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2021-10-05 14:20:38 +0200
commit5cdf3230b321ba679857acfe5dee6822f14d5ab8 (patch)
treefb2d58bb6fbc5a26a0285c6697e5020e33d800e0 /numpy/typing/_nested_sequence.py
parent79a8986b3caf55ffe5caf715b09faa055e38d342 (diff)
downloadnumpy-5cdf3230b321ba679857acfe5dee6822f14d5ab8.tar.gz
MAINT: Fixed an issue wherein `npt._NestedSequence` did not supertype `range`
Diffstat (limited to 'numpy/typing/_nested_sequence.py')
-rw-r--r--numpy/typing/_nested_sequence.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/typing/_nested_sequence.py b/numpy/typing/_nested_sequence.py
index e3b8fc33f..a853303ca 100644
--- a/numpy/typing/_nested_sequence.py
+++ b/numpy/typing/_nested_sequence.py
@@ -2,7 +2,6 @@
from __future__ import annotations
-import sys
from typing import (
Any,
Iterator,
@@ -86,8 +85,6 @@ class _NestedSequence(Protocol[_T_co]):
"""Return the number of occurrences of `value`."""
raise NotImplementedError
- def index(
- self, value: Any, start: int = 0, stop: int = sys.maxsize, /
- ) -> int:
+ def index(self, value: Any, /) -> int:
"""Return the first index of `value`."""
raise NotImplementedError