We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56c345 commit 8c56b19Copy full SHA for 8c56b19
minfraud/models.py
@@ -18,6 +18,9 @@ def __eq__(self, other: object) -> bool:
18
def __ne__(self, other: object) -> bool:
19
return not self.__eq__(other)
20
21
+ def __hash__(self) -> int:
22
+ return hash(self.to_dict())
23
+
24
def to_dict(self) -> dict: # noqa: C901
25
"""Return a dict of the object suitable for serialization."""
26
result = {}
0 commit comments