diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-11-13 20:36:24 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-11-13 20:36:24 +0000 |
commit | cd3f2e435000835dd98a11497440bc16a79ec31c (patch) | |
tree | 6c89dfa43e74f4c47a3255f38ab013cc3cf997a1 /sphinx/pycode/parser.py | |
parent | a6032e852a650c070aed66f0790e612905159f15 (diff) | |
download | sphinx-git-cd3f2e435000835dd98a11497440bc16a79ec31c.tar.gz |
Update typing ignores for mypy 0.990
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 |