Merge pull request #8710 from chrisjsewell/patch-2

minor typing fix
This commit is contained in:
Takeshi KOMIYA 2021-01-20 20:56:22 +09:00 committed by GitHub
commit 42de5e2888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
:license: BSD, see LICENSE for details.
"""
from typing import Any, Dict, List, Tuple, Type, cast
from typing import Any, Dict, List, Optional, Tuple, Type, cast
from docutils import nodes
from docutils.nodes import Element
@ -150,7 +150,7 @@ class ReferencesResolver(SphinxPostTransform):
return newnode
def warn_missing_reference(self, refdoc: str, typ: str, target: str,
node: pending_xref, domain: Domain) -> None:
node: pending_xref, domain: Optional[Domain]) -> None:
warn = node.get('refwarn')
if self.config.nitpicky:
warn = True