Browse Source

🎨 Auto format

pull/15338/head
pre-commit-ci-lite[bot] 3 months ago
committed by GitHub
parent
commit
99835215e0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/dependencies/utils.py

2
fastapi/dependencies/utils.py

@ -417,7 +417,7 @@ def analyze_param(
globalns = getattr(call, "__globals__", {})
type_annotation = get_typed_annotation(type_annotation, globalns)
# Also handle ForwardRef object (not just string)
elif hasattr(type_annotation, '__forward_arg__'):
elif hasattr(type_annotation, "__forward_arg__"):
globalns = getattr(call, "__globals__", {})
type_annotation = get_typed_annotation(
ForwardRef(type_annotation.__forward_arg__),

Loading…
Cancel
Save