Skip to content

Commit 00a817a

Browse files
committed
Override __hash__
1 parent c122c55 commit 00a817a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/sparktestsupport/modules.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def __eq__(self, other):
8989
def __ne__(self, other):
9090
return not (self.name == other.name)
9191

92+
def __hash__(self)
93+
return hash(self.name)
94+
9295

9396
catalyst = Module(
9497
name="catalyst",

0 commit comments

Comments
 (0)