pre-commit-ci-lite[bot]
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
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() |
|
|
|
|