From a834e5b4cd47a9c5f67bf4f4403a578642c9902e Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 19 Jun 2024 18:06:17 +0500 Subject: [PATCH] element.get_type doc note --- src/ifcopenshell-python/ifcopenshell/util/element.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/element.py b/src/ifcopenshell-python/ifcopenshell/util/element.py index 728050e7f4..22fb74deb5 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/element.py +++ b/src/ifcopenshell-python/ifcopenshell/util/element.py @@ -447,7 +447,9 @@ def get_predefined_type(element: ifcopenshell.entity_instance) -> str: def get_type(element: ifcopenshell.entity_instance) -> Union[ifcopenshell.entity_instance, None]: - """Retrieves the construction type element of an element occurrence + """Retrieves the construction type element of an element occurrence. + + Note: `get_type(type_element) == type_element`. :param element: The element occurrence :type: ifcopenshell.entity_instance