Skip to content

Commit dded1b0

Browse files
committed
Remove unnecessary default in ForwardRef constructor
1 parent 423452c commit dded1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/util/inspect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,14 +747,14 @@ def _evaluate(
747747
"""Evaluate unresolved type annotation."""
748748
try:
749749
if isinstance(annotation, str):
750-
ref = ForwardRef(annotation, True)
750+
ref = ForwardRef(annotation)
751751
annotation = _evaluate_forwardref(ref, globalns, localns)
752752

753753
if isinstance(annotation, ForwardRef):
754754
annotation = _evaluate_forwardref(ref, globalns, localns)
755755
elif isinstance(annotation, str):
756756
# might be a ForwardRef'ed annotation in overloaded functions
757-
ref = ForwardRef(annotation, True)
757+
ref = ForwardRef(annotation)
758758
annotation = _evaluate_forwardref(ref, globalns, localns)
759759
except (NameError, TypeError):
760760
# failed to evaluate type. skipped.

0 commit comments

Comments
 (0)