diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-02-17 22:11:14 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-02-18 01:58:05 +0000 |
commit | c8f4a03daceef4470ddbc34d5879ffd01588a116 (patch) | |
tree | b67cbca3c86b239e84e00b2ca5966e3c273ca18a /sphinx/pycode/parser.py | |
parent | 8de6638697b8c785f8022e1f526b549e74d033d1 (diff) | |
download | sphinx-git-c8f4a03daceef4470ddbc34d5879ffd01588a116.tar.gz |
Fix COM812
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 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: |