diff --git a/duo.py b/duo.py index 4f360e4..7c25d30 100644 --- a/duo.py +++ b/duo.py @@ -148,6 +148,12 @@ def __lt__(self, other): else: return int(self) < int(other) + def __gt__(self, other): + if isinstance(other, string_types): + return str(self) > other + else: + return int(self) > int(other) + def __eq__(self, other): if isinstance(other, string_types): return str(self) == other