mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
black format
This commit is contained in:
@@ -413,10 +413,12 @@ class AnnotationData:
|
|||||||
relating_types = []
|
relating_types = []
|
||||||
for relating_type in tool.Ifc.get().by_type("IfcTypeProduct"):
|
for relating_type in tool.Ifc.get().by_type("IfcTypeProduct"):
|
||||||
if tool.Drawing.is_annotation_object_type(relating_type, object_type):
|
if tool.Drawing.is_annotation_object_type(relating_type, object_type):
|
||||||
relating_types.append({
|
relating_types.append(
|
||||||
"id": relating_type.id(),
|
{
|
||||||
"name": relating_type.Name or "Unnamed",
|
"id": relating_type.id(),
|
||||||
"description": relating_type.Description or "No Description",
|
"name": relating_type.Name or "Unnamed",
|
||||||
})
|
"description": relating_type.Description or "No Description",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
return sorted(relating_types, key=lambda x: x["name"])
|
return sorted(relating_types, key=lambda x: x["name"])
|
||||||
|
|||||||
Reference in New Issue
Block a user