From 5de72bea7488886d01ff41f7faae7f39d142159d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:59: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 | 1 + tests/test_invalid_mapping_param.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/_compat/v2.py b/fastapi/_compat/v2.py index f2ee4fcec2..6ecb6099bf 100644 --- a/fastapi/_compat/v2.py +++ b/fastapi/_compat/v2.py @@ -650,6 +650,7 @@ else: ] return field_info, {} + def _regenerate_error_with_loc( *, errors: Sequence[Any], loc_prefix: tuple[Union[str, int], ...] ) -> list[dict[str, Any]]: diff --git a/tests/test_invalid_mapping_param.py b/tests/test_invalid_mapping_param.py index b73337cfef..511d7d97cf 100644 --- a/tests/test_invalid_mapping_param.py +++ b/tests/test_invalid_mapping_param.py @@ -1,4 +1,3 @@ - import pytest from fastapi import FastAPI, Query