diff options
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r-- | sphinx/pycode/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index a51892e5e..7861e6b0f 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -350,9 +350,9 @@ class VariableCommentPicker(ast.NodeVisitor): return # this assignment is not new definition! # record annotation - if hasattr(node, 'annotation') and node.annotation: # type: ignore + if hasattr(node, 'annotation') and node.annotation: for varname in varnames: - self.add_variable_annotation(varname, node.annotation) # type: ignore + self.add_variable_annotation(varname, node.annotation) elif hasattr(node, 'type_comment') and node.type_comment: for varname in varnames: self.add_variable_annotation(varname, node.type_comment) # type: ignore |