Skip to content

Commit

Permalink
Features
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-camilleri committed May 27, 2021
1 parent 0a238f8 commit 5807587
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mpctools/extensions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def __repr__(self):
def ison(self, item):
return self.__flag[item] == "1"

def any(self):
return "1" in self.__flag

def __contains__(self, item):
return self.ison(item)

Expand Down

0 comments on commit 5807587

Please sign in to comment.