Skip to content

Commit

Permalink
revert pydantic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinheiroms committed Dec 10, 2024
1 parent eee3d65 commit d77c188
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ def evaluate_forwardref(

return evaluate_forwardref_internal(value, globalns, localns)
else:
from pydantic._internal._typing_extra import try_eval_type
from pydantic._internal._typing_extra import eval_type_lenient

typ, _ = try_eval_type(value, globalns, localns)
return typ
return eval_type_lenient(value, globalns, localns)


def type2schema(t: Type[Any] | None) -> Dict[str, Any]:
Expand Down

0 comments on commit d77c188

Please sign in to comment.