This commit is contained in:
Andrej730
2024-09-06 16:19:02 +05:00
parent eaaa18468a
commit 8e87d0e303
@@ -55,9 +55,9 @@ def get_primitive_type(
return "binary"
def get_enum_items(attribute):
def get_enum_items(attribute: ifcopenshell_wrapper.attribute) -> tuple[str, ...]:
return attribute.type_of_attribute().declared_type().enumeration_items()
def get_select_items(attribute):
def get_select_items(attribute: ifcopenshell_wrapper.attribute) -> tuple[ifcopenshell_wrapper.entity, ...]:
return attribute.type_of_attribute().declared_type().select_list()