KeySequence: Add __le__/__ge__
This commit is contained in:
parent
fb7c75a090
commit
3649a36869
@ -318,6 +318,14 @@ class KeySequence:
|
||||
# pylint: disable=protected-access
|
||||
return self._sequences > other._sequences
|
||||
|
||||
def __le__(self, other):
|
||||
# pylint: disable=protected-access
|
||||
return self._sequences <= other._sequences
|
||||
|
||||
def __ge__(self, other):
|
||||
# pylint: disable=protected-access
|
||||
return self._sequences >= other._sequences
|
||||
|
||||
def __eq__(self, other):
|
||||
# pylint: disable=protected-access
|
||||
return self._sequences == other._sequences
|
||||
|
Loading…
Reference in New Issue
Block a user