Skip to content

Commit dacb14e

Browse files
committed
fix bug
1 parent 1436236 commit dacb14e

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
@@ -202,7 +202,7 @@ def restify(cls: type | None, mode: str = 'fully-qualified-except-typing') -> st
202202
and cls.__module__ == 'typing'
203203
and cls.__origin__ is Union): # type: ignore[attr-defined]
204204
# *cls* is defined in ``typing``, and thus ``__args__`` must exist;
205-
if NoneType in (__args__ := cls.__args__):
205+
if NoneType in (__args__ := cls.__args__): # type: ignore[attr-defined]
206206
# Shape: Union[T_1, ..., T_k, None, T_{k+1}, ..., T_n]
207207
#
208208
# Note that we keep Literal[None] in their rightful place

0 commit comments

Comments
 (0)