summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-04-05 15:05:07 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-04-05 15:05:07 +0200
commit2950b00e1fe322dfc89a566f1fda90c93e07a091 (patch)
tree5e6af5574a971f151a20a939a043a87157fc8c54
parenteda318131d1e938ee331cc2149a0518e25b7aa76 (diff)
downloadProject-Tick-2950b00e1fe322dfc89a566f1fda90c93e07a091.tar.gz
Project-Tick-2950b00e1fe322dfc89a566f1fda90c93e07a091.zip
fix: allow hashing of GradleSpecifier
-rw-r--r--meta/model/types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/model/types.py b/meta/model/types.py
index 2fd5435e1e..e06bfd615c 100644
--- a/meta/model/types.py
+++ b/meta/model/types.py
@@ -58,6 +58,9 @@ class GradleSpecifier:
def __gt__(self, other):
return str(self) > str(other)
+ def __hash__(self):
+ return hash(str(self))
+
@classmethod
def __get_validators__(cls):
yield cls.validate