diff --git a/hug/output_format.py b/hug/output_format.py index 6e60dfb3..fad76c7c 100644 --- a/hug/output_format.py +++ b/hug/output_format.py @@ -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) diff --git a/setup.py b/setup.py index ab302c20..cc1fbc61 100755 --- a/setup.py +++ b/setup.py @@ -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, @@ -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, diff --git a/tests/test_output_format.py b/tests/test_output_format.py index 11d0e158..48c400fb 100644 --- a/tests/test_output_format.py +++ b/tests/test_output_format.py @@ -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: