Skip to content

Commit

Permalink
Fix typing for evaluate_forward_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Sep 17, 2024
1 parent e945ee4 commit 0fd928b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mashumaro/core/meta/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,14 +770,14 @@ def str_to_forward_ref(


def evaluate_forward_ref(
typ: ForwardRef, globalns: Any, localns: Any
typ: ForwardRef, globalns: Dict[str, Any], localns: Dict[str, Any]
) -> Optional[Type]:
if PY_39_MIN:
return typ._evaluate(
globalns, localns, recursive_guard=frozenset()
) # type: ignore[call-arg]
else:
return typ._evaluate(globalns, localns) # type: ignore[call-arg]
return typ._evaluate(globalns, localns) # type: ignore[call-overload]


def get_forward_ref_referencing_globals(
Expand Down

0 comments on commit 0fd928b

Please sign in to comment.