This commit is contained in:
Andrej730
2024-05-09 14:18:36 +05:00
parent 359dab573b
commit 2d35869c41
57 changed files with 221 additions and 109 deletions
@@ -281,11 +281,11 @@ class entity_instance:
return entity_instance.walk(is_instance, unwrap, v)
def attribute_type(self, attr: int) -> str:
def attribute_type(self, attr: Union[int, str]) -> str:
"""Return the data type of a positional attribute of the element
:param attr: The index of the attribute
:type attr: int
:param attr: The index or name of the attribute
:type attr: Union[int, str]
:rtype: string
"""
attr_idx = attr if isinstance(attr, numbers.Integral) else self.wrapped_data.get_argument_index(attr)