diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index ee8b003cc..dad7e6562 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -77,7 +77,7 @@ sequence_shape_to_type = { } mapping_shapes = {SHAPE_MAPPING} -mapping_types = (Mapping) +mapping_types = Mapping mapping_shapes_to_type = {SHAPE_MAPPING: Mapping} multipart_not_installed_error = ( diff --git a/tests/test_query.py b/tests/test_query.py index 3e0544bb2..6fbca4d2c 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -63,7 +63,7 @@ response_not_valid_int = { "/query/sequence-params?first-query=1&first-query=2", 200, "foo bar {'first-query': [1, 2]}", - ) + ), ], ) def test_get_path(path, expected_status, expected_response):