Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def list_modules(dirname):

setup(
name="hug",
version="2.6.1",
version="2.6.2",
description="A Python framework that makes developing APIs "
"as simple as possible, but no simpler.",
long_description=long_description,
Expand All @@ -96,7 +96,7 @@ def list_modules(dirname):
entry_points={"console_scripts": ["hug = hug:development_runner.hug.interface.cli"]},
packages=["hug"],
requires=["falcon", "requests"],
install_requires=["falcon==2.0.0", "requests"],
install_requires=["falcon", "requests"],
tests_require=["pytest", "marshmallow"],
ext_modules=ext_modules,
cmdclass=cmdclass,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_output_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def test_json_converter_numpy_types():
numpy.single,
numpy.longfloat,
]
np_unicode_types = [numpy.unicode_]
np_unicode_types = [numpy.str_]
np_bytes_types = [numpy.bytes_]

for np_type in np_bool_types:
Expand Down