summaryrefslogtreecommitdiff
path: root/numpy/typing/_char_codes.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/typing/_char_codes.py')
-rw-r--r--numpy/typing/_char_codes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/typing/_char_codes.py b/numpy/typing/_char_codes.py
index 24d39c62e..22ee168e9 100644
--- a/numpy/typing/_char_codes.py
+++ b/numpy/typing/_char_codes.py
@@ -8,7 +8,7 @@ if sys.version_info >= (3, 8):
elif _HAS_TYPING_EXTENSIONS:
from typing_extensions import Literal
-if TYPE_CHECKING or _HAS_TYPING_EXTENSIONS:
+if TYPE_CHECKING or _HAS_TYPING_EXTENSIONS or sys.version_info >= (3, 8):
_BoolCodes = Literal["?", "=?", "<?", ">?", "bool", "bool_", "bool8"]
_UInt8Codes = Literal["uint8", "u1", "=u1", "<u1", ">u1"]