Skip to content

Commit

Permalink
Account for change in Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Jun 25, 2024
1 parent 9a23deb commit 56b0362
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/arcaflow_plugin_sdk/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6793,8 +6793,12 @@ def _resolve_forward(
) -> AbstractType:
t: typing.ForwardRef
# TODO is there a better way to directly evaluate a forward ref?
# noinspection PyArgumentList,PyProtectedMember
resolved = t._evaluate(None, None, frozenset())
# Note: This is an unstable API.
# noinspection PyProtectedMember
resolved = t._evaluate(
globalns=None,
localns=None,
recursive_guard=frozenset())
return cls._resolve(resolved, resolved, path, scope)

@classmethod
Expand Down

0 comments on commit 56b0362

Please sign in to comment.