From 355336119136f620c27f1adcc26074eb9528c159 Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Sat, 14 Aug 2021 22:02:29 +0200 Subject: MAINT: Drop .pyi code-paths specific to Python 3.7 --- numpy/lib/utils.pyi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'numpy/lib/utils.pyi') diff --git a/numpy/lib/utils.pyi b/numpy/lib/utils.pyi index 0518655c6..c13a219b5 100644 --- a/numpy/lib/utils.pyi +++ b/numpy/lib/utils.pyi @@ -1,4 +1,3 @@ -import sys from ast import AST from typing import ( Any, @@ -11,6 +10,7 @@ from typing import ( Tuple, TypeVar, Union, + Protocol, ) from numpy import ndarray, generic @@ -21,11 +21,6 @@ from numpy.core.numerictypes import ( issubsctype as issubsctype, ) -if sys.version_info >= (3, 8): - from typing import Protocol -else: - from typing_extensions import Protocol - _T_contra = TypeVar("_T_contra", contravariant=True) _FuncType = TypeVar("_FuncType", bound=Callable[..., Any]) -- cgit v1.2.1