diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-08-14 22:02:29 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-08-30 15:26:54 +0200 |
commit | 355336119136f620c27f1adcc26074eb9528c159 (patch) | |
tree | 6d64faab94a767d361fa2c0f87f0f26b2e75fc25 /numpy/testing/_private/utils.pyi | |
parent | d0b676b77bfa567eddb925bc31ead24ff0b576b1 (diff) | |
download | numpy-355336119136f620c27f1adcc26074eb9528c159.tar.gz |
MAINT: Drop .pyi code-paths specific to Python 3.7
Diffstat (limited to 'numpy/testing/_private/utils.pyi')
-rw-r--r-- | numpy/testing/_private/utils.pyi | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/numpy/testing/_private/utils.pyi b/numpy/testing/_private/utils.pyi index 29915309f..ab5ca8784 100644 --- a/numpy/testing/_private/utils.pyi +++ b/numpy/testing/_private/utils.pyi @@ -6,6 +6,7 @@ import warnings import unittest import contextlib from typing import ( + Literal as L, Any, AnyStr, Callable, @@ -23,6 +24,8 @@ from typing import ( type_check_only, TypeVar, Union, + Final, + SupportsIndex, ) from numpy import generic, dtype, number, object_, bool_, _FloatValue @@ -40,11 +43,6 @@ from unittest.case import ( SkipTest as SkipTest, ) -if sys.version_info >= (3, 8): - from typing import Final, SupportsIndex, Literal as L -else: - from typing_extensions import Final, SupportsIndex, Literal as L - _T = TypeVar("_T") _ET = TypeVar("_ET", bound=BaseException) _FT = TypeVar("_FT", bound=Callable[..., Any]) |