Unclear message if named tuple is not compatible with protocol #7224
Labels
diagnostics
priority-1-normal
topic-error-reporting
How we report errors
topic-named-tuple
topic-protocols
topic-usability
Mypy just says that class is not compatible with the bound when type checking this example:
Here's the error message:
It would be better to also say that
sentence
inConcreteExample
is read-only, and maybe suggest making it a read-only property in the protocol.Originally reported in #7212.
The text was updated successfully, but these errors were encountered: