diff options
author | Chris Sewell <chrisj_sewell@hotmail.com> | 2021-01-20 07:43:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 07:43:39 +0300 |
commit | 088d0591963f6a6f3a1a913f1fc86819d08cb983 (patch) | |
tree | 830c45d38a454881806b9f5d5990243f412f773d /sphinx/transforms | |
parent | 67c4ca6b21a54a8ab3ed38378461e20f6f28b750 (diff) |
minor typing fix
Diffstat (limited to 'sphinx/transforms')
-rw-r--r-- | sphinx/transforms/post_transforms/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/transforms/post_transforms/__init__.py b/sphinx/transforms/post_transforms/__init__.py index 2c563540a..1c424050a 100644 --- a/sphinx/transforms/post_transforms/__init__.py +++ b/sphinx/transforms/post_transforms/__init__.py @@ -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 |