Skip to content

Commit

Permalink
Merge pull request #247 from Fatal1ty/fix-typing
Browse files Browse the repository at this point in the history
Fix typing for evaluate_forward_ref
  • Loading branch information
Fatal1ty committed Sep 17, 2024
2 parents e945ee4 + 4e84598 commit 4ac16fd
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


def get_forward_ref_referencing_globals(
Expand Down

0 comments on commit 4ac16fd

Please sign in to comment.