From f6c69a57b0c31bf8f7a9dfba430a8dcb5123f3cd 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, 17 Mar 2026 13:38: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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastapi/_compat/v2.py b/fastapi/_compat/v2.py index 9dad514b95..89340fcf39 100644 --- a/fastapi/_compat/v2.py +++ b/fastapi/_compat/v2.py @@ -45,7 +45,9 @@ def define_forwardref() -> Callable[..., Any]: try_eval_type = getattr(_pydantic_typing_extra, "try_eval_type", None) if try_eval_type is not None: return lambda *args: try_eval_type(*args)[0] - return _pydantic_typing_extra.eval_type_lenient # pragma: no cover # ty: ignore[deprecated] + return ( + _pydantic_typing_extra.eval_type_lenient + ) # pragma: no cover # ty: ignore[deprecated] evaluate_forwardref = define_forwardref()