Skip to content

Commit

Permalink
Changed union to InsertionOrderedSet return value
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhartmann committed Jan 23, 2024
1 parent 3f2b02b commit be39417
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions decompiler/util/insertion_ordered_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def __repr__(self):
def __str__(self):
return "{%s}" % (", ".join(map(repr, self.keys())))

def __or__(self, other: AbstractSet[Any]) -> InsertionOrderedSet:
return InsertionOrderedSet(super().__or__(other))

difference = property(lambda self: self.__sub__)
difference_update = property(lambda self: self.__isub__)
intersection = property(lambda self: self.__and__)
Expand Down

0 comments on commit be39417

Please sign in to comment.