From 67981527a18e25a2aaf061cc470268b1074d235e Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 21 Oct 2017 13:48:42 +0900 Subject: Fix mypy violation --- 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 f9644c38e..7460dcfce 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -284,7 +284,7 @@ class VariableCommentPicker(ast.NodeVisitor): # type: (ast.Assign) -> None """Handles Assign node and pick up a variable comment.""" try: - varnames = sum([get_lvar_names(t, self=self.get_self()) for t in node.targets], []) # type: ignore # NOQA + varnames = sum([get_lvar_names(t, self=self.get_self()) for t in node.targets], []) current_line = self.get_line(node.lineno) except TypeError: return # this assignment is not new definition! -- cgit v1.2.1