Browse Source

assert evaluate_forwardref is not None

pull/15101/head
svlandeg 4 months ago
parent
commit
a1abbce3a5
  1. 1
      fastapi/_compat/v2.py

1
fastapi/_compat/v2.py

@ -43,6 +43,7 @@ Undefined = PydanticUndefined
evaluate_forwardref = getattr(_pydantic_typing_extra, "try_eval_type", None)
if evaluate_forwardref is None:
evaluate_forwardref = _pydantic_typing_extra.eval_type_lenient
assert evaluate_forwardref is not None
class GenerateJsonSchema(_GenerateJsonSchema):

Loading…
Cancel
Save