From f322c99f8ba981502511e58f815bd744c40d02ee Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 16 Jun 2023 09:39:47 +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 --- fastapi/routing.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 56fb85565..29e5f9b98 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -120,10 +120,7 @@ def _merge_lifespan_context( async def merged_lifespan(app: AppType) -> AsyncIterator[Mapping[str, Any]]: async with original_context(app) as maybe_self_context: async with nested_context(app) as maybe_nested_context: - yield { - **(maybe_self_context or {}), - **(maybe_nested_context or {}) - } + yield {**(maybe_self_context or {}), **(maybe_nested_context or {})} return merged_lifespan