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
bad_starargs.py:3: error: Argument 1 to "foo" has incompatible type "*Tuple[str, int]"; expected "int"
bad_starargs.py:3: error: Argument 1 to "foo" has incompatible type "*Tuple[str, int]"; expected "str"
This is not great, since Tuple[str, int] isn't being compared to something, and while it appears in argument position 1, the type mismatches don't necessarily.
A better error message might be something like:
bad_starargs.py:3: error: Argument 1 to "foo" has incompatible type "str"; expected "int"
bad_starargs.py:3: note: while unpacking "*Tuple[str, int]"
bad_starargs.py:3: error: Argument 2 to "foo" has incompatible type "int"; expected "str"
bad_starargs.py:3: note: while unpacking "*Tuple[str, int]"
The text was updated successfully, but these errors were encountered:
When typechecking this:
mypy reports
This is not great, since
Tuple[str, int]
isn't being compared to something, and while it appears in argument position 1, the type mismatches don't necessarily.A better error message might be something like:
The text was updated successfully, but these errors were encountered: