diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-13 10:55:13 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-13 10:55:13 +0900 |
commit | fd74594f5337b2f28ab40521d255958c14ca6ef6 (patch) | |
tree | 3daa13f8f775b1ee3e298ab7e8236cf96e672520 /sphinx/pycode/parser.py | |
parent | f443fb5579d64340b87c595e9cd87895bbc90f65 (diff) | |
download | sphinx-git-fd74594f5337b2f28ab40521d255958c14ca6ef6.tar.gz |
Fix mypy violations (for mypy-0.720)
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r-- | sphinx/pycode/parser.py | 2 |
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! |