Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/10589/head
pre-commit-ci[bot] 6 months ago
parent
commit
64d0123a3f
  1. 4
      fastapi/routing.py

4
fastapi/routing.py

@ -578,7 +578,9 @@ class APIRoute(routing.Route):
), f"Status code {additional_status_code} must not have a response body"
response_name = f"Response_{additional_status_code}_{self.unique_id}"
response_field = create_model_field(name=response_name, type_=model, mode="serialization")
response_field = create_model_field(
name=response_name, type_=model, mode="serialization"
)
response_fields[additional_status_code] = response_field
return response_fields

Loading…
Cancel
Save