-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Better message for invalid types like (int, str) #4173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Interested. Are you suggesting literally |
Just literal |
Came across this today when I accidentally had: def foo(
arg1, # type: int,
arg2, # type: str
): # type (...) -> None
pass The lint was on the first line of the function definition, |
The error message "Invalid tuple literal type" isn't very helpful if a user writes
(int, str)
instead ofTuple[int, str]
.Example:
A better message could be something like this:
#4172 is closely related.
The text was updated successfully, but these errors were encountered: