Mentioned in #6223
This commit is contained in:
Andrej730
2025-02-25 14:16:39 +05:00
parent ea274588b0
commit 6de409031e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class IfcClassData:
return types_enum
@classmethod
def ifc_classes_suggestions(cls):
def ifc_classes_suggestions(cls) -> dict[str, list[dict[str, Union[str, None]]]]:
# suggestions : dict[class_name: list[dict[predefined_type, name(optional)]]]
suggestions = defaultdict(list)
version = tool.Ifc.get_schema()
+1 -1
View File
@@ -99,7 +99,7 @@ def get_ifc_classes(self: "BIMRootProperties", context: bpy.types.Context) -> li
return IfcClassData.data["ifc_classes"]
def get_ifc_classes_suggestions(self: "BIMRootProperties", context: bpy.types.Context) -> list[tuple[str, str]]:
def get_ifc_classes_suggestions() -> dict[str, list[dict[str, Union[str, None]]]]:
if not IfcClassData.is_loaded:
IfcClassData.load()
return IfcClassData.data["ifc_classes_suggestions"]