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}"}