This commit is contained in:
Andrej730
2024-05-16 16:27:41 +05:00
parent 8d4b5d83e1
commit 3884403231
10 changed files with 89 additions and 46 deletions
@@ -446,13 +446,13 @@ def get_predefined_type(element: ifcopenshell.entity_instance) -> str:
return predefined_type
def get_type(element: ifcopenshell.entity_instance) -> ifcopenshell.entity_instance:
def get_type(element: ifcopenshell.entity_instance) -> Union[ifcopenshell.entity_instance, None]:
"""Retrieves the construction type element of an element occurrence
:param element: The element occurrence
:type: ifcopenshell.entity_instance
:return: The related type element
:rtype: ifcopenshell.entity_instance
:rtype: Union[ifcopenshell.entity_instance, None]
Example: