summaryrefslogtreecommitdiff
path: root/sphinx/directives/other.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/other.py')
-rw-r--r--sphinx/directives/other.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index 87d769b41..e4fcc0f5c 100644
--- a/sphinx/directives/other.py
+++ b/sphinx/directives/other.py
@@ -85,14 +85,14 @@ class TocTree(SphinxDirective):
ret.append(wrappernode)
return ret
- def parse_content(self, toctree):
+ def parse_content(self, toctree: addnodes.toctree) -> List[Node]:
suffixes = self.config.source_suffix
# glob target documents
all_docnames = self.env.found_docs.copy()
all_docnames.remove(self.env.docname) # remove current document
- ret = []
+ ret = [] # type: List[Node]
excluded = Matcher(self.config.exclude_patterns)
for entry in self.content:
if not entry: