diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-08-14 21:39:50 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-08-30 15:26:54 +0200 |
commit | d0b676b77bfa567eddb925bc31ead24ff0b576b1 (patch) | |
tree | 07b44648afab1077871a8bb330e9e183f7865c25 /numpy/typing/_shape.py | |
parent | 5ae53e93b2be9ccf47bf72a85d71ea15d15a2eed (diff) | |
download | numpy-d0b676b77bfa567eddb925bc31ead24ff0b576b1.tar.gz |
MAINT: Drop .py code-paths specific to Python 3.7
Diffstat (limited to 'numpy/typing/_shape.py')
-rw-r--r-- | numpy/typing/_shape.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/numpy/typing/_shape.py b/numpy/typing/_shape.py index 75698f3d3..c28859b19 100644 --- a/numpy/typing/_shape.py +++ b/numpy/typing/_shape.py @@ -1,14 +1,4 @@ -import sys -from typing import Sequence, Tuple, Union, Any - -from . import _HAS_TYPING_EXTENSIONS - -if sys.version_info >= (3, 8): - from typing import SupportsIndex -elif _HAS_TYPING_EXTENSIONS: - from typing_extensions import SupportsIndex -else: - SupportsIndex = Any +from typing import Sequence, Tuple, Union, SupportsIndex _Shape = Tuple[int, ...] |