Browse Source

use of use_annotation

pull/14877/head
Javier Sánchez 5 months ago
parent
commit
bbf9555494
  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