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 is Incompatible types in assignment or somesuch which is just plain uninformative. Say something like Cannot assign 'int' to 'str' instead. When the types are inferred, it might not be immediately obvious why an assignment is rejected.
There is also a similar issue with function argument types. Include both the actual and the expected type.
Shorten the types whenever possible to only include enough information to make the problem clear and obvious. So
Cannot assign func<...very long...> to tuple<...very long...>
is worse than
Cannot assign function to tuple.
The text was updated successfully, but these errors were encountered:
Consider this code fragment:
The error message is
Incompatible types in assignment
or somesuch which is just plain uninformative. Say something likeCannot assign 'int' to 'str'
instead. When the types are inferred, it might not be immediately obvious why an assignment is rejected.There is also a similar issue with function argument types. Include both the actual and the expected type.
Shorten the types whenever possible to only include enough information to make the problem clear and obvious. So
Cannot assign func<...very long...> to tuple<...very long...>
is worse than
Cannot assign function to tuple
.The text was updated successfully, but these errors were encountered: