mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
minor typing fix
This commit is contained in:
parent
67c4ca6b21
commit
088d059196
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user