Skip to content

Commit

Permalink
Merge pull request #968 from ynput/enhancement/804-make-publishattrib…
Browse files Browse the repository at this point in the history
…utevalues-behave-like-dict-when-iterating

Create Attribute values: Implemented iter
  • Loading branch information
iLLiCiTiT authored Oct 24, 2024
2 parents d2ee416 + 9c9f02f commit f11fba0
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 f11fba0

Please sign in to comment.