We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084e770 commit 20d4177Copy full SHA for 20d4177
nixio/datatype.py
@@ -8,6 +8,7 @@
8
# LICENSE file in the root of the Project.
9
from numbers import Integral, Real
10
from six import string_types
11
+from packaging import version
12
13
import numpy as np
14
@@ -26,7 +27,10 @@ class DataType(object):
26
27
Int64 = np.int64
28
Float = np.float32
29
Double = np.double
- String = np.unicode_
30
+ if version.parse(np.__version__) < version.parse("2.0"):
31
+ String = np.unicode_
32
+ else:
33
+ String = np.str_
34
Bool = np.bool_
35
36
# type groups
0 commit comments