Browse Source

🎨 Auto format

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

4
fastapi/_compat/v2.py

@ -45,7 +45,9 @@ def define_forwardref() -> Callable[..., Any]:
try_eval_type = getattr(_pydantic_typing_extra, "try_eval_type", None)
if try_eval_type is not None:
return lambda *args: try_eval_type(*args)[0]
return _pydantic_typing_extra.eval_type_lenient # pragma: no cover # ty: ignore[deprecated]
return (
_pydantic_typing_extra.eval_type_lenient
) # pragma: no cover # ty: ignore[deprecated]
evaluate_forwardref = define_forwardref()

Loading…
Cancel
Save