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 error message that mypy produces is Need type annotation for '<name of variable>', which is the same error you get if you write some_list = [] in a context where mypy can't infer the type. The solution in both cases is to add the type parameter.
I agree that this error is confusing; filed #9 to track the documentation improvement that's needed here.
mypy wants
Shouldn't mypy be able to infer the types by itself?
The text was updated successfully, but these errors were encountered: