Skip to content

Commit 5a0b968

Browse files
committed
use canonical way of defining unhashable type
1 parent 4eecd19 commit 5a0b968

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/validators/test_set.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ def test_list_with_unhashable_items():
108108
v = SchemaValidator({'type': 'set'})
109109

110110
class Unhashable:
111-
def __hash__(self):
112-
raise TypeError('unhashable type')
111+
__hash__ = None
113112

114113
unhashable = Unhashable()
115114

0 commit comments

Comments
 (0)