fix: allow hashing of GradleSpecifier

This commit is contained in:
Sefa Eyeoglu 2022-04-05 15:05:07 +02:00
parent eda318131d
commit 2950b00e1f
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -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