diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-08-30 11:58:53 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 11:58:53 -0600 |
commit | b21ad7c5ee0cd76ea41bb519877804457d1776f8 (patch) | |
tree | 2e0fbb0cc3b8e5ffe214e217f9a6a55441ac4ed4 /numpy/lib/index_tricks.pyi | |
parent | 5f9445052238200b905074ee188bcfdab2ef8861 (diff) | |
parent | 6b46b35e8fc081b5b0244ab5e31fcfb34ddee17f (diff) | |
download | numpy-b21ad7c5ee0cd76ea41bb519877804457d1776f8.tar.gz |
Merge pull request #19784 from BvB93/37-typing
MAINT: Remove typing code-paths specific to Python 3.7
Diffstat (limited to 'numpy/lib/index_tricks.pyi')
-rw-r--r-- | numpy/lib/index_tricks.pyi | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/numpy/lib/index_tricks.pyi b/numpy/lib/index_tricks.pyi index 0f9ae94a9..530be3cae 100644 --- a/numpy/lib/index_tricks.pyi +++ b/numpy/lib/index_tricks.pyi @@ -1,4 +1,3 @@ -import sys from typing import ( Any, Tuple, @@ -8,6 +7,8 @@ from typing import ( List, Union, Sequence, + Literal, + SupportsIndex, ) from numpy import ( @@ -49,11 +50,6 @@ from numpy.core.multiarray import ( ravel_multi_index as ravel_multi_index, ) -if sys.version_info >= (3, 8): - from typing import Literal, SupportsIndex -else: - from typing_extensions import Literal, SupportsIndex - _T = TypeVar("_T") _DType = TypeVar("_DType", bound=dtype[Any]) _BoolType = TypeVar("_BoolType", Literal[True], Literal[False]) |