summaryrefslogtreecommitdiff
path: root/sphinx/pycode/parser.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-07-13 10:55:13 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-07-13 10:55:13 +0900
commitfd74594f5337b2f28ab40521d255958c14ca6ef6 (patch)
tree3daa13f8f775b1ee3e298ab7e8236cf96e672520 /sphinx/pycode/parser.py
parentf443fb5579d64340b87c595e9cd87895bbc90f65 (diff)
downloadsphinx-git-fd74594f5337b2f28ab40521d255958c14ca6ef6.tar.gz
Fix mypy violations (for mypy-0.720)
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r--sphinx/pycode/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py
index 1746537bb..a96fe593f 100644
--- a/sphinx/pycode/parser.py
+++ b/sphinx/pycode/parser.py
@@ -298,7 +298,7 @@ class VariableCommentPicker(ast.NodeVisitor):
"""Handles Assign node and pick up a variable comment."""
try:
targets = get_assign_targets(node)
- varnames = sum([get_lvar_names(t, self=self.get_self()) for t in targets], [])
+ varnames = sum([get_lvar_names(t, self=self.get_self()) for t in targets], []) # type: List[str] # NOQA
current_line = self.get_line(node.lineno)
except TypeError:
return # this assignment is not new definition!