From c8f4a03daceef4470ddbc34d5879ffd01588a116 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Fri, 17 Feb 2023 22:11:14 +0000 Subject: Fix COM812 --- 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 49ef4f7ff..cddb8bcf5 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -349,7 +349,7 @@ class VariableCommentPicker(ast.NodeVisitor): try: targets = get_assign_targets(node) varnames: list[str] = sum( - [get_lvar_names(t, self=self.get_self()) for t in targets], [] + [get_lvar_names(t, self=self.get_self()) for t in targets], [], ) current_line = self.get_line(node.lineno) except TypeError: -- cgit v1.2.1