Emit a message for unhashable dict keys #7034
Labels
Enhancement ✨
Improvement to a component
False Negative 🦋
No message is emitted but something is wrong with the code
Milestone
Current problem
The following example leads to a
TypeError
because the key is unhashable.pylint currently emits nothing for this:
Desired solution
Emit a message indicating the TypeError.
Additional context
Noticed this while writing documentation for the
unhashable-dict-key
checker: #7033 (comment).Note the existing
unhashable-dict-key
checker emits a message when the key being looked up is unhashable; not the keys in the dict itself. I.e.:The text was updated successfully, but these errors were encountered: