Skip to content

Commit

Permalink
adapt for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jul 4, 2024
1 parent e4a3fa4 commit 9d69176
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hug/output_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def register_json_converter(function):
def numpy_listable(item):
return item.tolist()

@json_convert(str, numpy.unicode_)
@json_convert(str, numpy.str_)
def numpy_stringable(item):
return str(item)

Expand Down
2 changes: 1 addition & 1 deletion requirements/build_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ python-coveralls==2.9.2
wheel==0.33.4
PyJWT==1.7.1
pytest-xdist==1.29.0
numpy<1.16
numpy==2.0.0
2 changes: 1 addition & 1 deletion requirements/build_windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ marshmallow==2.18.1
pytest==4.6.3
wheel==0.33.4
pytest-xdist==1.29.0
numpy==1.15.4
numpy==2.0.0
2 changes: 1 addition & 1 deletion requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ wheel
pytest-xdist==1.29.0
marshmallow==2.18.1
ujson==1.35
numpy<1.16
numpy==2.0.0

0 comments on commit 9d69176

Please sign in to comment.