diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-06-05 23:37:58 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-06-05 23:37:58 +0200 |
commit | b180427f55f8d12237b5f3e46b2cb5c96033e92c (patch) | |
tree | 7e7237a2ffdd090e48de29da5b023dfcaa28e7d0 /numpy/typing/_char_codes.py | |
parent | 7162dc3c9f3cc02434c50dfb4e55b790453c00a4 (diff) | |
download | numpy-b180427f55f8d12237b5f3e46b2cb5c96033e92c.tar.gz |
MAINT: Added a missing `sys.version` check
Diffstat (limited to 'numpy/typing/_char_codes.py')
-rw-r--r-- | numpy/typing/_char_codes.py | 2 |
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"] |