Merge pull request #6069 from tk0miya/docutils-stubs-0.0.21

Fix mypy violations
This commit is contained in:
Takeshi KOMIYA authored and GitHub committed 2019-02-14 00:56:21 +09:00
commit e00ec8d7f9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -7158,7 +7158,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
+1 -1
View File
@@ -151,7 +151,7 @@ class PyXrefMixin:
delims_re = re.compile(delims)
sub_targets = re.split(delims, target)
split_contnode = bool(contnode and contnode.astext() == target) # type: ignore
split_contnode = bool(contnode and contnode.astext() == target)
results = []
for sub_target in filter(None, sub_targets):