From 94bd71371eb4264fd40279f8b7f32e8f80b55d7e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 21:14:26 +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 76acbe5c5d..38ca8ba7a3 100644 --- a/fastapi/_compat/v2.py +++ b/fastapi/_compat/v2.py @@ -42,7 +42,7 @@ Undefined = PydanticUndefined # eval_type_lenient has been deprecated since Pydantic v2.10.0b1 (PR #10530) evaluate_forwardref = getattr(_pydantic_typing_extra, "try_eval_type", None) if evaluate_forwardref is None: - evaluate_forwardref = getattr(_pydantic_typing_extra, "eval_type_lenient") + evaluate_forwardref = _pydantic_typing_extra.eval_type_lenient class GenerateJsonSchema(_GenerateJsonSchema):