Browse Source

use use_annotation

pull/14877/head^2
Javier Sánchez 5 months ago
parent
commit
e97b985e41
  1. 2
      fastapi/dependencies/utils.py

2
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:

Loading…
Cancel
Save