From bbf9555494e20f1478fb3c04a3afd9ac29429596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez?= Date: Mon, 9 Feb 2026 19:10:46 +0100 Subject: [PATCH] use of use_annotation --- fastapi/dependencies/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 80f9c76e9..21efbed8a 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -445,7 +445,7 @@ def analyze_param( ) field_info = value if isinstance(field_info, FieldInfo): - field_info.annotation = type_annotation + field_info.annotation = use_annotation # Get Depends from type annotation if depends is not None and depends.dependency is None: