mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 23:38:48 +02:00
[core] Add iteration accessor on ListAttribute
This commit is contained in:
parent
c50d3cc9e7
commit
3f0e3e00c7
1 changed files with 3 additions and 0 deletions
|
@ -445,6 +445,9 @@ class ListAttribute(Attribute):
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
return len(self._value)
|
return len(self._value)
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
return iter(self._value)
|
||||||
|
|
||||||
def getBaseType(self):
|
def getBaseType(self):
|
||||||
return self.attributeDesc.elementDesc.__class__.__name__
|
return self.attributeDesc.elementDesc.__class__.__name__
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue