diff options
Diffstat (limited to '')
-rw-r--r-- | polymatrix/expressionstate/mixins.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/polymatrix/expressionstate/mixins.py b/polymatrix/expressionstate/mixins.py index b80669f..f937137 100644 --- a/polymatrix/expressionstate/mixins.py +++ b/polymatrix/expressionstate/mixins.py @@ -16,6 +16,9 @@ class IndexRange(NamedTuple): start: int end: int + def __lt__(self, other): + return self.start < other.start + class ExpressionStateMixin( StateCacheMixin, |