From 23c4f42c5065c025416a76caea6ee954a536b4d4 Mon Sep 17 00:00:00 2001 From: dbejo Date: Thu, 3 Apr 2025 08:45:16 +0200 Subject: [PATCH] Format with script --- docs_src/sql_databases/tutorial001_an.py | 1 + docs_src/sql_databases/tutorial001_an_py310.py | 1 + docs_src/sql_databases/tutorial001_py39.py | 1 + 3 files changed, 3 insertions(+) diff --git a/docs_src/sql_databases/tutorial001_an.py b/docs_src/sql_databases/tutorial001_an.py index 2ef8b0299..9e492546e 100644 --- a/docs_src/sql_databases/tutorial001_an.py +++ b/docs_src/sql_databases/tutorial001_an.py @@ -37,6 +37,7 @@ async def lifespan(app: FastAPI): create_db_and_tables() yield + app = FastAPI(lifespan=lifespan) diff --git a/docs_src/sql_databases/tutorial001_an_py310.py b/docs_src/sql_databases/tutorial001_an_py310.py index e19315b80..2054877cb 100644 --- a/docs_src/sql_databases/tutorial001_an_py310.py +++ b/docs_src/sql_databases/tutorial001_an_py310.py @@ -36,6 +36,7 @@ async def lifespan(app: FastAPI): create_db_and_tables() yield + app = FastAPI(lifespan=lifespan) diff --git a/docs_src/sql_databases/tutorial001_py39.py b/docs_src/sql_databases/tutorial001_py39.py index 3187235e0..22de0dd53 100644 --- a/docs_src/sql_databases/tutorial001_py39.py +++ b/docs_src/sql_databases/tutorial001_py39.py @@ -33,6 +33,7 @@ async def lifespan(app: FastAPI): create_db_and_tables() yield + app = FastAPI(lifespan=lifespan)