We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ForwardRef
1 parent 423452c commit dded1b0Copy full SHA for dded1b0
sphinx/util/inspect.py
@@ -747,14 +747,14 @@ def _evaluate(
747
"""Evaluate unresolved type annotation."""
748
try:
749
if isinstance(annotation, str):
750
- ref = ForwardRef(annotation, True)
+ ref = ForwardRef(annotation)
751
annotation = _evaluate_forwardref(ref, globalns, localns)
752
753
if isinstance(annotation, ForwardRef):
754
755
elif isinstance(annotation, str):
756
# might be a ForwardRef'ed annotation in overloaded functions
757
758
759
except (NameError, TypeError):
760
# failed to evaluate type. skipped.
0 commit comments