summaryrefslogtreecommitdiff
path: root/numpy/typing/_callable.py
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2021-06-05 23:37:58 +0200
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2021-06-05 23:37:58 +0200
commitb180427f55f8d12237b5f3e46b2cb5c96033e92c (patch)
tree7e7237a2ffdd090e48de29da5b023dfcaa28e7d0 /numpy/typing/_callable.py
parent7162dc3c9f3cc02434c50dfb4e55b790453c00a4 (diff)
downloadnumpy-b180427f55f8d12237b5f3e46b2cb5c96033e92c.tar.gz
MAINT: Added a missing `sys.version` check
Diffstat (limited to 'numpy/typing/_callable.py')
-rw-r--r--numpy/typing/_callable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/typing/_callable.py b/numpy/typing/_callable.py
index 52573f648..8f911da3b 100644
--- a/numpy/typing/_callable.py
+++ b/numpy/typing/_callable.py
@@ -53,7 +53,7 @@ if sys.version_info >= (3, 8):
elif _HAS_TYPING_EXTENSIONS:
from typing_extensions import Protocol
-if TYPE_CHECKING or _HAS_TYPING_EXTENSIONS:
+if TYPE_CHECKING or _HAS_TYPING_EXTENSIONS or sys.version_info >= (3, 8):
_T1 = TypeVar("_T1")
_T2 = TypeVar("_T2")
_2Tuple = Tuple[_T1, _T1]