summaryrefslogtreecommitdiff
path: root/sphinx/ext/autosummary/generate.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-16 09:57:54 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-16 09:57:54 +0900
commite7e07fd69723c02d6b011142f5e97fe2d42bd7d9 (patch)
tree1fe9194dd4115ed070212641ecc46e7d8846d13d /sphinx/ext/autosummary/generate.py
parent25678f391d55a701b7d5f2d2e214db980dcebbd3 (diff)
parentbe2b86cc15a2f5fca1581c25ebf2db9a189dbc41 (diff)
downloadsphinx-git-e7e07fd69723c02d6b011142f5e97fe2d42bd7d9.tar.gz
Merge branch '1.8'
Diffstat (limited to 'sphinx/ext/autosummary/generate.py')
-rw-r--r--sphinx/ext/autosummary/generate.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py
index 5cb0d7416..20a06aeb4 100644
--- a/sphinx/ext/autosummary/generate.py
+++ b/sphinx/ext/autosummary/generate.py
@@ -302,11 +302,11 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
template = None
current_module = module
in_autosummary = False
- base_indent = ""
+ base_indent = "" # type: unicode
for line in lines:
if in_autosummary:
- m = toctree_arg_re.match(line) # type: ignore
+ m = toctree_arg_re.match(line)
if m:
toctree = m.group(1)
if filename:
@@ -314,7 +314,7 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
toctree)
continue
- m = template_arg_re.match(line) # type: ignore
+ m = template_arg_re.match(line)
if m:
template = m.group(1).strip()
continue
@@ -322,7 +322,7 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
if line.strip().startswith(':'):
continue # skip options
- m = autosummary_item_re.match(line) # type: ignore
+ m = autosummary_item_re.match(line)
if m:
name = m.group(1).strip()
if name.startswith('~'):
@@ -338,7 +338,7 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
in_autosummary = False
- m = autosummary_re.match(line) # type: ignore
+ m = autosummary_re.match(line)
if m:
in_autosummary = True
base_indent = m.group(1)
@@ -346,7 +346,7 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
template = None
continue
- m = automodule_re.search(line) # type: ignore
+ m = automodule_re.search(line)
if m:
current_module = m.group(1).strip()
# recurse into the automodule docstring
@@ -354,7 +354,7 @@ def find_autosummary_in_lines(lines, module=None, filename=None):
current_module, filename=filename))
continue
- m = module_re.match(line) # type: ignore
+ m = module_re.match(line)
if m:
current_module = m.group(2)
continue