Fix flake and mypy errors

This commit is contained in:
Jakob Lykke Andersen committed 2020-03-17 18:49:22 +01:00
1 parent c617750b77
commit 4fe5b6498c
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -6983,7 +6983,7 @@ class CPPDomain(Domain):
# the non-identifier refs are cross-references, which should be processed:
# - fix parenthesis due to operator() and add_function_parentheses
if typ != "identifier":
title = contnode.pop(0).astext() # type: ignore
title = contnode.pop(0).astext()
# If it's operator(), we need to add '()' if explicit function parens
# are requested. Then the Sphinx machinery will add another pair.
# Also, if it's an 'any' ref that resolves to a function, we need to add
+2
View File
@@ -14,7 +14,9 @@ from copy import deepcopy
from typing import (
Any, Callable, List, Match, Pattern, Tuple, Union
)
from docutils import nodes
from sphinx.deprecation import RemovedInSphinx40Warning
from sphinx.util import logging