Skip to content

Commit 9d69176

Browse files
committed
adapt for numpy 2.0
1 parent e4a3fa4 commit 9d69176

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

hug/output_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def register_json_converter(function):
142142
def numpy_listable(item):
143143
return item.tolist()
144144

145-
@json_convert(str, numpy.unicode_)
145+
@json_convert(str, numpy.str_)
146146
def numpy_stringable(item):
147147
return str(item)
148148

requirements/build_common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ python-coveralls==2.9.2
66
wheel==0.33.4
77
PyJWT==1.7.1
88
pytest-xdist==1.29.0
9-
numpy<1.16
9+
numpy==2.0.0

requirements/build_windows.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ marshmallow==2.18.1
55
pytest==4.6.3
66
wheel==0.33.4
77
pytest-xdist==1.29.0
8-
numpy==1.15.4
8+
numpy==2.0.0

requirements/development.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ wheel
1212
pytest-xdist==1.29.0
1313
marshmallow==2.18.1
1414
ujson==1.35
15-
numpy<1.16
15+
numpy==2.0.0
1616

0 commit comments

Comments
 (0)