You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's difficult to spot which comment has a syntax error. It would be nicer if mypy could print the comment it's looking at, to make it more obvious.
$ mypy --py2 bar.py
bar.py:1: error: syntax error in type comment
The text was updated successfully, but these errors were encountered:
Yes, I think it is possible for Python 2 to do this in mypy without changes to typed_ast. On the contrary Python 3 type annotations are parsed by Python parser and should be syntactically correct.
Given the Python code:
Sometimes it's difficult to spot which comment has a syntax error. It would be nicer if mypy could print the comment it's looking at, to make it more obvious.
The text was updated successfully, but these errors were encountered: