Skip to content

Commit 59ffb2c

Browse files
committed
Temporarily silence mypy complain; could be removed after typeshed update
1 parent b55b9ce commit 59ffb2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/fastparse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ def visit_Delete(self, n: ast35.Delete) -> Node:
407407
@with_line
408408
def visit_Assign(self, n: ast35.Assign) -> Node:
409409
typ = None
410-
if hasattr(n, 'new_syntax') and n.new_syntax == 1 and self.pyversion < (3, 6):
410+
if (hasattr(n, 'new_syntax') and n.new_syntax == 1 # type: ignore
411+
and self.pyversion < (3, 6)):
411412
raise TypeCommentParseError('Variable annotation syntax is only '
412413
'suppoted in Python 3.6, use type '
413414
'comment instead', n.lineno)

0 commit comments

Comments
 (0)