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
The following is fairly typical tuple unpacking code.
t = (1, 1, 'a')
i, _, _ = t # error: Incompatible types in assignment (expression has type "str", variable has type "int")
Would it be reasonable for mypy to ignore the identifier _?
The text was updated successfully, but these errors were encountered:
gwk
changed the title
Mypy should ignore type conflict between consecutive '_' variable.
Mypy should ignore type conflict between consecutive '_' variable assignments.
Mar 29, 2017
The following is fairly typical tuple unpacking code.
Would it be reasonable for mypy to ignore the identifier
_
?The text was updated successfully, but these errors were encountered: