From 7a14e73e572616830b67039fdc9a2d38c0a0cc2d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 00:20:42 +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/_compat.py | 2 +- fastapi/routing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/_compat.py b/fastapi/_compat.py index c260f33a6..d3be652c7 100644 --- a/fastapi/_compat.py +++ b/fastapi/_compat.py @@ -144,7 +144,7 @@ if PYDANTIC_V2: exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, - context: Optional[Dict[str, Any]]= None, + context: Optional[Dict[str, Any]] = None, ) -> Any: # What calls this code passes a value that already called # self._type_adapter.validate_python(value) diff --git a/fastapi/routing.py b/fastapi/routing.py index ad15b3b8e..07c9c971c 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -130,7 +130,7 @@ async def serialize_response( exclude_defaults: bool = False, exclude_none: bool = False, is_coroutine: bool = True, - context: Optional[Dict[str, Any]]= None, + context: Optional[Dict[str, Any]] = None, ) -> Any: if field: errors = []