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

This commit is contained in:
pre-commit-ci[bot] 2022-08-24 19:22:36 +00:00
parent d652b2cc10
commit c43827d6bd
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,8 @@
from fastapi import FastAPI
from fastapi.openapi.docs import (
get_redoc_html,
get_swagger_ui_html,
get_stoplight_elements_html,
get_swagger_ui_html,
get_swagger_ui_oauth2_redirect_html,
)
from fastapi.staticfiles import StaticFiles
@ -36,6 +36,7 @@ async def redoc_html():
redoc_js_url="/static/redoc.standalone.js",
)
@app.get("/elements", include_in_schema=False)
async def elements_html():
return get_stoplight_elements_html(
@ -48,4 +49,4 @@ async def elements_html():
@app.get("/users/{username}")
async def read_user(username: str):
return {"message": f"Hello {username}"}
return {"message": f"Hello {username}"}