summaryrefslogtreecommitdiff
path: root/sphinx/builders/devhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-02 23:55:36 +0900
committerGitHub <noreply@github.com>2018-12-02 23:55:36 +0900
commit8068cef267d771cd933316ba93b13665e8282c9d (patch)
tree94ae28f0358fa323f2b9e89ac7bcf010fd4f6428 /sphinx/builders/devhelp.py
parent28add225f2f11d76b7720ed4b7b76aacea6932b3 (diff)
parenta4749ca46839338329c446cba671dac008201e3e (diff)
downloadsphinx-git-8068cef267d771cd933316ba93b13665e8282c9d.tar.gz
Merge pull request #5703 from tk0miya/fix_typehints_for_builders
Fix annotations for builders
Diffstat (limited to 'sphinx/builders/devhelp.py')
-rw-r--r--sphinx/builders/devhelp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/devhelp.py b/sphinx/builders/devhelp.py
index db7399a48..1bf2f2a56 100644
--- a/sphinx/builders/devhelp.py
+++ b/sphinx/builders/devhelp.py
@@ -90,7 +90,7 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
self.config.master_doc, self, prune_toctrees=False)
def write_toc(node, parent):
- # type: (nodes.Node, nodes.Node) -> None
+ # type: (nodes.Node, etree.Element) -> None
if isinstance(node, addnodes.compact_paragraph) or \
isinstance(node, nodes.bullet_list):
for subnode in node:
@@ -104,7 +104,7 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
parent.attrib['name'] = node.astext()
matcher = NodeMatcher(addnodes.compact_paragraph, toctree=Any)
- for node in tocdoc.traverse(matcher):
+ for node in tocdoc.traverse(matcher): # type: addnodes.compact_paragraph
write_toc(node, chapters)
# Index