We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11c8188 commit e0964e7Copy full SHA for e0964e7
1 file changed
tasklib/lazy.py
@@ -165,12 +165,24 @@ def __le__(self, other):
165
def __ge__(self, other):
166
return self.issuperset(other)
167
168
+ def __lt__(self, other):
169
+ return self.isstrictsubset(other)
170
+
171
+ def __gt__(self, other):
172
+ return self.isstrictsuperset(other)
173
174
def issubset(self, other):
175
return all([task in other for task in self])
176
177
def issuperset(self, other):
178
return all([task in self for task in other])
179
180
+ def isstrictsubset(self, other):
181
+ return len(set(t['uuid'] for t in other) - self._uuids) > 0
182
183
+ def isstrictsuperset(self, other):
184
+ return len(self._uuids - set(t['uuid'] for t in other)) > 0
185
186
def union(self, other):
187
return LazyUUIDTaskSet(
188
self._tw,
0 commit comments