Skip to content

Commit de04c87

Browse files
RonMcKaytbabej
authored andcommitted
Fix strict subset/superset in LazyUUIDTaskSet
1 parent e0964e7 commit de04c87

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tasklib/lazy.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,23 +166,17 @@ def __ge__(self, other):
166166
return self.issuperset(other)
167167

168168
def __lt__(self, other):
169-
return self.isstrictsubset(other)
169+
return self._uuids < set(t['uuid'] for t in other)
170170

171171
def __gt__(self, other):
172-
return self.isstrictsuperset(other)
172+
return self._uuids > set(t['uuid'] for t in other)
173173

174174
def issubset(self, other):
175175
return all([task in other for task in self])
176176

177177
def issuperset(self, other):
178178
return all([task in self for task in other])
179179

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-
186180
def union(self, other):
187181
return LazyUUIDTaskSet(
188182
self._tw,

0 commit comments

Comments
 (0)