Avoid a mypy warning

This commit is contained in:
Takeshi KOMIYA 2021-03-15 00:46:19 +09:00
parent 6c7480b3f6
commit 5b5730ef4e

View File

@ -1303,7 +1303,7 @@ def builtin_resolver(app: Sphinx, env: BuildEnvironment,
content = find_pending_xref_condition(node, 'resolved')
if content:
contnode = content.children[0]
contnode = content.children[0] # type: ignore
if node.get('refdomain') != 'py':
return None