mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
implemented iter
This commit is contained in:
parent
d2ee4167ae
commit
9c9f02f0d2
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ class AttributeValues:
|
|||
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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue