From bbffb0e402a01a011bff9b2cf6535b522e81b470 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 19:23:13 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/docs/advanced/extending-openapi.md | 2 +- docs_src/extending_openapi/tutorial006.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/docs/advanced/extending-openapi.md b/docs/en/docs/advanced/extending-openapi.md index 05ed02b2b0..898a9b52cb 100644 --- a/docs/en/docs/advanced/extending-openapi.md +++ b/docs/en/docs/advanced/extending-openapi.md @@ -354,4 +354,4 @@ To configure them, use the `get_stoplight_elements_html` built in function param - `LayoutOptions.STACKED` Everything in a single column, making integrations with existing websites that have their own sidebar or other columns already. - `logo` URL to an image that will show as a small square logo next to the title, above the table of contents. - `router` - - Default: `RouterOptions.HISTORY` \ No newline at end of file + - Default: `RouterOptions.HISTORY` diff --git a/docs_src/extending_openapi/tutorial006.py b/docs_src/extending_openapi/tutorial006.py index fc11e16c8a..da58758aec 100644 --- a/docs_src/extending_openapi/tutorial006.py +++ b/docs_src/extending_openapi/tutorial006.py @@ -1,10 +1,10 @@ from fastapi import FastAPI from fastapi.openapi.docs import ( - get_stoplight_elements_html, - get_swagger_ui_oauth2_redirect_html, - TryItCredentialPolicyOptions, LayoutOptions, RouterOptions, + TryItCredentialPolicyOptions, + get_stoplight_elements_html, + get_swagger_ui_oauth2_redirect_html, ) from fastapi.staticfiles import StaticFiles @@ -40,4 +40,4 @@ async def elements_html(): @app.get("/users/{username}") async def read_user(username: str): - return {"message": f"Hello {username}"} \ No newline at end of file + return {"message": f"Hello {username}"}