summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/shape_base.pyi6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/shape_base.pyi b/numpy/core/shape_base.pyi
index 2fe945f3b..b20598b1a 100644
--- a/numpy/core/shape_base.pyi
+++ b/numpy/core/shape_base.pyi
@@ -1,13 +1,13 @@
import sys
-from typing import TypeVar, overload, List, Sequence, Optional
+from typing import TypeVar, overload, List, Sequence
from numpy import ndarray
from numpy.typing import ArrayLike
if sys.version_info >= (3, 8):
- from typing import SupportsIndex, Literal
+ from typing import SupportsIndex
else:
- from typing_extensions import Literal, Protocol
+ from typing_extensions import Protocol
class SupportsIndex(Protocol):
def __index__(self) -> int: ...