Skip to content

Commit 6ee194f

Browse files
committed
Fix mypy error
1 parent 3385ce1 commit 6ee194f

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

203203
return text
204204
elif isinstance(cls, typing._SpecialForm):
205-
return f':py:obj:`~{cls.__module__}.{cls._name}`' # type: ignore[attr-defined]
205+
return f':py:obj:`~{cls.__module__}.{cls._name}`'
206206
elif sys.version_info[:2] >= (3, 11) and cls is typing.Any:
207207
# handle bpo-46998
208208
return f':py:obj:`~{cls.__module__}.{cls.__name__}`'

0 commit comments

Comments
 (0)