summaryrefslogtreecommitdiff
path: root/numpy/typing/_nested_sequence.py
diff options
context:
space:
mode:
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