Skip to content

Commit

Permalink
add AttrDictWrapper.__contains__
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlatwe committed Oct 7, 2021
1 parent 3fac0d2 commit ffbbfbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rez/utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ def __setitem__(self, key, value):
def __delitem__(self, key):
del self._data[key]

def __contains__(self, key):
return key in self._data

def __iter__(self):
return iter(self._data)

Expand Down

0 comments on commit ffbbfbc

Please sign in to comment.