ifcopenshell.api.run to use explicit kwargs instead of unpacking

This commit is contained in:
Andrej
2025-06-10 11:02:54 +05:00
parent a37d46ca3d
commit 1608677d40
52 changed files with 118 additions and 147 deletions
@@ -328,7 +328,7 @@ class Usecase:
return self.create_material_association(material)
previous_related_objects = set(rel.RelatedObjects)
rel.RelatedObjects = list(previous_related_objects | self.products)
ifcopenshell.api.owner.update_owner_history(self.file, **{"element": rel})
ifcopenshell.api.owner.update_owner_history(self.file, element=rel)
return rel
def create_material_association(
@@ -132,4 +132,4 @@ class Usecase:
ifcopenshell.util.element.remove_deep2(self.file, history)
continue
rel.RelatedObjects = list(related_objects)
ifcopenshell.api.owner.update_owner_history(self.file, **{"element": rel})
ifcopenshell.api.owner.update_owner_history(self.file, element=rel)