Skip to content

Commit d6d6a03

Browse files
committed
Fixed python 3.12 issue
1 parent 8b4411a commit d6d6a03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/omnipy/util/helpers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ def evaluate_any_forward_refs_if_possible(in_type: TypeForm,
167167
else:
168168
globalns = {}
169169
try:
170-
return cast(type | GenericAlias,
171-
in_type._evaluate(globalns, localns if localns else locals(), frozenset()))
170+
return cast(
171+
type | GenericAlias,
172+
in_type._evaluate(
173+
globalns, localns if localns else locals(), recursive_guard=set()))
172174
except NameError:
173175
pass
174176
else:

0 commit comments

Comments
 (0)