Browse Source

Reformat with ruff

pull/14449/head
Max Chis 8 months ago
parent
commit
7dbf8bfe58
  1. 4
      fastapi/applications.py

4
fastapi/applications.py

@ -911,7 +911,9 @@ class FastAPI(Starlette):
if not self.title:
raise ValueError("A title must be provided for OpenAPI, e.g.: 'My API'")
if not self.version:
raise ValueError("A version must be provided for OpenAPI, e.g.: '2.1.0'")
raise ValueError(
"A version must be provided for OpenAPI, e.g.: '2.1.0'"
)
# TODO: remove when discarding the openapi_prefix parameter
if openapi_prefix:
logger.warning(

Loading…
Cancel
Save