-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Given the Python code:
def big_function(
x1, # type: Optional[int]
x2, # type: Optional[int]
x3, # type: Optional[int]
x4, # type: Optional[int]
x5, # type: Optional[int]]
x6, # type: Optional[int]
x7, # type: Optional[int]
):
# type: (...) -> int
return 123
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
javierhonduco and anentropic