From e97b985e4199790847912c68838fd1357776221c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez?= Date: Mon, 9 Feb 2026 18:27:32 +0100 Subject: [PATCH] use 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 80f9c76e90..21efbed8a1 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: