mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
typing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user