mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
typing
This commit is contained in:
@@ -454,7 +454,7 @@ def get_elements_by_pset(pset: ifcopenshell.entity_instance) -> set[ifcopenshell
|
||||
return elements
|
||||
|
||||
|
||||
def get_predefined_type(element: ifcopenshell.entity_instance) -> str:
|
||||
def get_predefined_type(element: ifcopenshell.entity_instance) -> Union[str, None]:
|
||||
"""Retrieves the PrefefinedType attribute of an element.
|
||||
|
||||
If the predefined type is user defined, the custom type (such as object
|
||||
|
||||
Reference in New Issue
Block a user