From e2e5ae02167431112f8c9932e25c503c46716920 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 09:43:54 +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.py | 3 +-- tests/test_dependency_contextmanager.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs_src/dependencies/tutorial010.py b/docs_src/dependencies/tutorial010.py index fcf80e698..3b0f024bc 100644 --- a/docs_src/dependencies/tutorial010.py +++ b/docs_src/dependencies/tutorial010.py @@ -10,5 +10,4 @@ class MySuperContextManager: @app.get("/") -async def get_root(db: Annotated[DBSession, Depends(MySuperContextManager)]): - ... +async def get_root(db: Annotated[DBSession, Depends(MySuperContextManager)]): ... diff --git a/tests/test_dependency_contextmanager.py b/tests/test_dependency_contextmanager.py index b5c94606f..8849e8cf3 100644 --- a/tests/test_dependency_contextmanager.py +++ b/tests/test_dependency_contextmanager.py @@ -1,5 +1,5 @@ -from contextlib import asynccontextmanager, contextmanager import json +from contextlib import asynccontextmanager, contextmanager from typing import Dict import pytest