Browse Source

ruff format fix

pull/15519/head
Codebuff Contributor 4 weeks ago
parent
commit
477ebee8d2
  1. 4
      fastapi/dependencies/utils.py

4
fastapi/dependencies/utils.py

@ -248,9 +248,7 @@ def get_typed_annotation(annotation: Any, globalns: dict[str, Any]) -> Any:
annotation = evaluate_forwardref(annotation, globalns, globalns) annotation = evaluate_forwardref(annotation, globalns, globalns)
if isinstance(annotation, ForwardRef): if isinstance(annotation, ForwardRef):
if "Annotated[" in annotation.__forward_arg__: if "Annotated[" in annotation.__forward_arg__:
annotation = _resolve_forward_ref_lenient( annotation = _resolve_forward_ref_lenient(annotation, globalns)
annotation, globalns
)
elif annotation is type(None): elif annotation is type(None):
return None return None
return annotation return annotation

Loading…
Cancel
Save