Skip to content

Commit 9931670

Browse files
authored
Merge pull request #249 from cdce8p/fix-deprecation-warning
Fix Python 3.13 DeprecationWarning
2 parents 4ac16fd + 78c65c8 commit 9931670

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mashumaro/core/meta/helpers.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
PY_310_MIN,
3939
PY_311_MIN,
4040
PY_312_MIN,
41+
PY_313_MIN,
4142
)
4243
from mashumaro.dialect import Dialect
4344

@@ -772,7 +773,11 @@ def str_to_forward_ref(
772773
def evaluate_forward_ref(
773774
typ: ForwardRef, globalns: Dict[str, Any], localns: Dict[str, Any]
774775
) -> Optional[Type]:
775-
if PY_39_MIN:
776+
if PY_313_MIN:
777+
return typ._evaluate(
778+
globalns, localns, type_params=(), recursive_guard=frozenset()
779+
) # type: ignore[call-arg]
780+
elif PY_39_MIN:
776781
return typ._evaluate(
777782
globalns, localns, recursive_guard=frozenset()
778783
) # type: ignore[call-arg]

0 commit comments

Comments
 (0)