Skip to content

Commit 8f8e0bb

Browse files
committed
fixup
1 parent b4bd02b commit 8f8e0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/util/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def restify(cls: Any, mode: object = 'fully-qualified-except-typing') -> str:
249249
and cls.__origin__ is Union
250250
):
251251
# *cls* is defined in ``typing``, and thus ``__args__`` must exist
252-
return ' | '.join(restify(a, mode) for a in cls.__args__) # type: ignore[attr-defined]
252+
return ' | '.join(restify(a, mode) for a in cls.__args__)
253253
elif inspect.isgenericalias(cls):
254254
__origin__ = cls.__origin__
255255
if _is_annotated_form(__origin__):

0 commit comments

Comments
 (0)