From 2a2ed2fe5be7c5a6c6e148820882177b8e4d1289 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 28 Jan 2026 12:44:22 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/_compat/v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/_compat/v2.py b/fastapi/_compat/v2.py index 8ce309da1d..bd5da1a207 100644 --- a/fastapi/_compat/v2.py +++ b/fastapi/_compat/v2.py @@ -584,7 +584,7 @@ def _regenerate_error_with_loc( if shared.PYDANTIC_VERSION_MINOR_TUPLE >= (2, 6): # Omit by default for scalar mapping and scalar sequence mapping annotations # added in Pydantic v2.6 https://github.com/pydantic/pydantic/releases/tag/v2.6.0 - def _omit_by_default(annotation: Any, depth: int=0) -> Any: + def _omit_by_default(annotation: Any, depth: int = 0) -> Any: origin = get_origin(annotation) args = get_args(annotation)