-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
It's a common pattern to use assignment to _
in code to ignore variables that aren't used, and mypy doesn't support that:
/home/tabbott/foo.py:2: error: Incompatible types in assignment (expression has type "str", variable has type "int")
In my real code the usage looks more like this:
for (email, _, _, _) in users:
...
Not sure whether the right answer is to change the code, but I think I'd flag this as an interesting case that may be somewhat common.
Metadata
Metadata
Assignees
Labels
No labels