summaryrefslogtreecommitdiff
path: root/sphinx/domains/std.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/domains/std.py')
-rw-r--r--sphinx/domains/std.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/domains/std.py b/sphinx/domains/std.py
index 0fee0e54b..2bbc92f88 100644
--- a/sphinx/domains/std.py
+++ b/sphinx/domains/std.py
@@ -155,10 +155,10 @@ class Cmdoption(ObjectDescription):
# type: (unicode, addnodes.desc_signature) -> unicode
"""Transform an option description into RST nodes."""
count = 0
- firstname = ''
+ firstname = '' # type: unicode
for potential_option in sig.split(', '):
potential_option = potential_option.strip()
- m = option_desc_re.match(potential_option) # type: ignore
+ m = option_desc_re.match(potential_option)
if not m:
logger.warning(__('Malformed option description %r, should '
'look like "opt", "-opt args", "--opt args", '
@@ -387,7 +387,7 @@ def token_xrefs(text):
# type: (unicode) -> List[nodes.Node]
retnodes = []
pos = 0
- for m in token_re.finditer(text): # type: ignore
+ for m in token_re.finditer(text):
if m.start() > pos:
txt = text[pos:m.start()]
retnodes.append(nodes.Text(txt, txt))