We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55b9ce commit 59ffb2cCopy full SHA for 59ffb2c
mypy/fastparse.py
@@ -407,7 +407,8 @@ def visit_Delete(self, n: ast35.Delete) -> Node:
407
@with_line
408
def visit_Assign(self, n: ast35.Assign) -> Node:
409
typ = None
410
- if hasattr(n, 'new_syntax') and n.new_syntax == 1 and self.pyversion < (3, 6):
+ if (hasattr(n, 'new_syntax') and n.new_syntax == 1 # type: ignore
411
+ and self.pyversion < (3, 6)):
412
raise TypeCommentParseError('Variable annotation syntax is only '
413
'suppoted in Python 3.6, use type '
414
'comment instead', n.lineno)
0 commit comments