From c5fe422f1b499bdd0b5976163a7d66bcb510f9a9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 16:51: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_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)