.. _unhashable-member: unhashable-member / E1143 ========================= **Message emitted:** ``'%s' is unhashable and can't be used as a %s in a %s`` **Description:** *Emitted when a dict key or set member is not hashable (i.e. doesn't define __hash__ method).* **Problematic code:** .. literalinclude:: /data/messages/u/unhashable-member/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/u/unhashable-member/good.py :language: python Created by the `typecheck `__ checker.