Skip to content

Commit 24da89d

Browse files
committed
Fixes for numpy 2.0
1 parent 4cc7906 commit 24da89d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
]
3838

3939
dependencies = [
40-
"numpy >=1.13.0, <2",
40+
"numpy >=1.13.0, <2.1",
4141
"cpyparsing >=2.4.7, <=2.5",
4242
"platformdirs >=3, <=5",
4343
"dataclasses_json >=0.6, <=1.0",

tests/strings_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_str_alloc_sub_realloc(self):
100100

101101
def test_str_array_type_chceck(self):
102102
with pytest.raises(TypeError) as cm:
103-
x.a_str_exp_1d = np.zeros(5, dtype=np.unicode_)
103+
x.a_str_exp_1d = np.zeros(5, dtype=np.str_)
104104

105105
def test_str_func_inout_str(self, capfd):
106106
z = np.array(

0 commit comments

Comments
 (0)