mirror of
https://github.com/unmojang/meta.git
synced 2025-09-23 11:10:53 -04:00
fix: allow hashing of GradleSpecifier
This commit is contained in:
parent
eda318131d
commit
2950b00e1f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user