Merge pull request #2490 from alicevision/dev/attributeType

[core] Attribute: Directly access description's type in `getType()`
This commit is contained in:
Candice Bentéjac 2024-08-02 11:39:58 +02:00 committed by GitHub
commit 5df10583e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,7 @@ class Attribute(BaseObject):
return "{" + self.getFullNameToNode() + "}"
def getType(self):
return self.attributeDesc.__class__.__name__
return self.attributeDesc.type
def _isReadOnly(self):
return not self._isOutput and self.node.isCompatibilityNode