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
error: Return type of "__iter__" incompatible with supertype "Iterable"
It would be really helpful if the message specified what the return type is, and more helpfully, what mypy thinks it should be.
This is particularly helpful in the context of generic/templated types like Iterable, where reading the definition of the type doesn't immediately give you the answer. In other words: "Oh no! I have to think!" 😃
The text was updated successfully, but these errors were encountered:
I'm a relatively new user to mypy, and I have a quick bit of feedback / suggestion:
(Tangentially related to #2783 and/or #2782)
I see this error message:
It would be really helpful if the message specified what the return type is, and more helpfully, what mypy thinks it should be.
This is particularly helpful in the context of generic/templated types like
Iterable
, where reading the definition of the type doesn't immediately give you the answer. In other words: "Oh no! I have to think!" 😃The text was updated successfully, but these errors were encountered: