Skip to content

Commit

Permalink
implemented iter
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Oct 24, 2024
1 parent d2ee416 commit 9c9f02f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/ayon_core/pipeline/create/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def __getitem__(self, key):
def __contains__(self, key):
return key in self._attr_defs_by_key

def __iter__(self):
for key in self._attr_defs_by_key:
yield key

def get(self, key, default=None):
if key in self._attr_defs_by_key:
return self[key]
Expand Down

0 comments on commit 9c9f02f

Please sign in to comment.