Browse Source

🎨 Auto format

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

4
fastapi/dependencies/utils.py

@ -254,9 +254,7 @@ class _LenientDict(dict):
return Any
def _try_resolve_annotated(
annotation_str: str, globalns: dict[str, Any]
) -> Any | None:
def _try_resolve_annotated(annotation_str: str, globalns: dict[str, Any]) -> Any | None:
"""Resolve an ``Annotated`` string annotation, tolerating missing names.
Returns the evaluated ``Annotated`` type when the metadata contains a

Loading…
Cancel
Save