From 4ef801a817f7eafa6563072dc2227bfd13e5147a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 09:52:19 +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/dependencies/tutorial010_ctx.py | 1 + tests/test_dependency_contextmanager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs_src/dependencies/tutorial010_ctx.py b/docs_src/dependencies/tutorial010_ctx.py index 71f6aa284..1fd180c8f 100644 --- a/docs_src/dependencies/tutorial010_ctx.py +++ b/docs_src/dependencies/tutorial010_ctx.py @@ -1,5 +1,6 @@ from contextlib import asynccontextmanager + @asynccontextmanager async def get_db(): db = DBSession() diff --git a/tests/test_dependency_contextmanager.py b/tests/test_dependency_contextmanager.py index ce0f56474..80b368bf8 100644 --- a/tests/test_dependency_contextmanager.py +++ b/tests/test_dependency_contextmanager.py @@ -1,5 +1,5 @@ -from typing import Dict from contextlib import asynccontextmanager, contextmanager +from typing import Dict import pytest from fastapi import BackgroundTasks, Depends, FastAPI