From 2950b00e1fe322dfc89a566f1fda90c93e07a091 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 5 Apr 2022 15:05:07 +0200 Subject: [PATCH] fix: allow hashing of GradleSpecifier --- meta/model/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/model/types.py b/meta/model/types.py index 2fd5435..e06bfd6 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