We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ed14e commit 7668358Copy full SHA for 7668358
geoip2/_internal.py
@@ -12,6 +12,9 @@ def __eq__(self, other: object) -> bool:
12
def __ne__(self, other: object) -> bool:
13
return not self.__eq__(other)
14
15
+ def __hash__(self) -> int:
16
+ return hash(self.to_dict())
17
+
18
def to_dict(self) -> dict: # noqa: C901, PLR0912
19
"""Return a dict of the object suitable for serialization."""
20
result = {}
0 commit comments