Fix flake and mypy errors

This commit is contained in:
Jakob Lykke Andersen
2020-03-17 18:48:59 +01:00
parent c617750b77
commit 4fe5b6498c
2 changed files with 3 additions and 1 deletions

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

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