Skip to content

Commit

Permalink
Handle recursive_guard change to ForwardRef._evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jun 23, 2024
1 parent 108531f commit 45c71f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx_toolbox/more_autodoc/typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,5 +921,7 @@ def _resolve_forwardref(
module_dict = sys.modules[module].__dict__
if sys.version_info < (3, 9):
return fr._evaluate(module_dict, module_dict)
elif sys.version_info >= (3, 12):
return fr._evaluate(module_dict, module_dict, set(), recursive_guard=set())
else:
return fr._evaluate(module_dict, module_dict, set())

0 comments on commit 45c71f3

Please sign in to comment.