From fd74594f5337b2f28ab40521d255958c14ca6ef6 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 13 Jul 2019 10:55:13 +0900 Subject: Fix mypy violations (for mypy-0.720) --- sphinx/pycode/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx/pycode/parser.py') 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! -- cgit v1.2.1