Skip to content

Commit e99f070

Browse files
committed
Merge branch 'cleanup/util-2d-type-guards' into cleanup/util-2e-typing-refactor
2 parents 8e7bcf0 + 8f8e0bb commit e99f070

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
@@ -254,7 +254,7 @@ def restify(cls: Any, mode: object = 'fully-qualified-except-typing') -> str:
254254
and cls.__origin__ is Union
255255
):
256256
# *cls* is defined in ``typing``, and thus ``__args__`` must exist
257-
return ' | '.join(restify(a, mode) for a in cls.__args__) # type: ignore[attr-defined]
257+
return ' | '.join(restify(a, mode) for a in cls.__args__)
258258
elif inspect.isgenericalias(cls):
259259
__origin__ = cls.__origin__
260260
if _is_annotated_form(__origin__):

0 commit comments

Comments
 (0)