From 406b8b4540f204f5922fe0c6587bcda33b314d9d Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sat, 27 Mar 2021 19:14:32 +1100 Subject: [PATCH] IfcOpenShell API now uses kwargs to improve user syntax. See #1399. --- .../ifcopenshell/api/aggregate/assign_object.py | 2 +- .../ifcopenshell/api/attribute/edit_attributes.py | 2 +- .../ifcopenshell/api/classification/add_classification.py | 2 +- .../ifcopenshell/api/classification/add_reference.py | 2 +- .../ifcopenshell/api/classification/edit_classification.py | 2 +- .../ifcopenshell/api/classification/edit_reference.py | 2 +- .../ifcopenshell/api/classification/remove_classification.py | 2 +- .../ifcopenshell/api/classification/remove_reference.py | 2 +- .../ifcopenshell/api/constraint/add_objective.py | 2 +- .../ifcopenshell/api/constraint/assign_constraint.py | 2 +- .../ifcopenshell/api/constraint/edit_objective.py | 2 +- .../ifcopenshell/api/constraint/remove_constraint.py | 2 +- .../ifcopenshell/api/constraint/unassign_constraint.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/context/add_context.py | 2 +- .../ifcopenshell/api/context/remove_context.py | 2 +- .../ifcopenshell/api/document/add_information.py | 2 +- .../ifcopenshell/api/document/add_reference.py | 2 +- .../ifcopenshell/api/document/assign_document.py | 2 +- .../ifcopenshell/api/document/edit_information.py | 2 +- .../ifcopenshell/api/document/edit_reference.py | 2 +- .../ifcopenshell/api/document/remove_document.py | 2 +- .../ifcopenshell/api/document/unassign_document.py | 2 +- .../ifcopenshell/api/geometry/add_representation.py | 2 +- .../ifcopenshell/api/geometry/assign_representation.py | 2 +- .../ifcopenshell/api/geometry/assign_styles.py | 2 +- .../ifcopenshell/api/geometry/edit_object_placement.py | 2 +- .../ifcopenshell/api/geometry/map_representation.py | 2 +- .../ifcopenshell/api/geometry/remove_representation.py | 2 +- .../ifcopenshell/api/geometry/unassign_representation.py | 2 +- .../ifcopenshell/api/georeference/add_georeferencing.py | 2 +- .../ifcopenshell/api/georeference/edit_georeferencing.py | 2 +- .../ifcopenshell/api/georeference/remove_georeferencing.py | 2 +- .../ifcopenshell/api/grid/create_axis_curve.py | 2 +- .../ifcopenshell/api/grid/create_grid_axis.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/group/add_group.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/group/edit_group.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/group/remove_group.py | 2 +- .../ifcopenshell/api/group/unassign_group.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/layer/add_layer.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/layer/edit_layer.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/layer/remove_layer.py | 2 +- .../ifcopenshell/api/layer/unassign_layer.py | 2 +- .../ifcopenshell/api/material/add_constituent.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/material/add_layer.py | 2 +- .../ifcopenshell/api/material/add_list_item.py | 2 +- .../ifcopenshell/api/material/add_material.py | 2 +- .../ifcopenshell/api/material/assign_material.py | 2 +- .../ifcopenshell/api/material/edit_assigned_material.py | 2 +- .../ifcopenshell/api/material/edit_constituent.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/material/edit_layer.py | 2 +- .../ifcopenshell/api/material/edit_profile.py | 2 +- .../ifcopenshell/api/material/remove_constituent.py | 2 +- .../ifcopenshell/api/material/remove_layer.py | 2 +- .../ifcopenshell/api/material/remove_list_item.py | 2 +- .../ifcopenshell/api/material/remove_material.py | 2 +- .../ifcopenshell/api/material/reorder_set_item.py | 2 +- .../ifcopenshell/api/material/unassign_material.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/add_address.py | 2 +- .../ifcopenshell/api/owner/add_organisation.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/add_role.py | 2 +- .../ifcopenshell/api/owner/create_owner_history.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py | 2 +- .../ifcopenshell/api/owner/edit_organisation.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/edit_person.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/edit_role.py | 2 +- .../ifcopenshell/api/owner/remove_address.py | 2 +- .../ifcopenshell/api/owner/remove_organisation.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/remove_person.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/owner/remove_role.py | 2 +- .../ifcopenshell/api/owner/update_owner_history.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/project/create_file.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/pset/add_qto.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/pset/remove_pset.py | 2 +- .../ifcopenshell/api/pset_template/add_prop_template.py | 2 +- .../ifcopenshell/api/pset_template/add_pset_template.py | 2 +- .../ifcopenshell/api/pset_template/edit_prop_template.py | 2 +- .../ifcopenshell/api/pset_template/edit_pset_template.py | 2 +- .../ifcopenshell/api/pset_template/remove_prop_template.py | 2 +- .../ifcopenshell/api/pset_template/remove_pset_template.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/root/copy_class.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/root/create_product.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/root/reassign_class.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/root/remove_product.py | 2 +- .../ifcopenshell/api/spatial/assign_container.py | 2 +- .../ifcopenshell/api/spatial/remove_container.py | 2 +- .../api/structural/add_structural_analysis_model.py | 2 +- .../api/structural/add_structural_boundary_condition.py | 2 +- .../api/structural/assign_structural_analysis_model.py | 2 +- .../api/structural/edit_structural_analysis_model.py | 2 +- .../api/structural/edit_structural_boundary_condition.py | 2 +- .../api/structural/remove_structural_analysis_model.py | 2 +- .../api/structural/remove_structural_boundary_condition.py | 2 +- .../api/structural/unassign_structural_analysis_model.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/style/add_style.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/style/edit_style.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py | 2 +- .../ifcopenshell/api/type/get_related_objects.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/void/add_filling.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/void/remove_filling.py | 2 +- src/ifcopenshell-python/ifcopenshell/api/void/remove_opening.py | 2 +- 109 files changed, 109 insertions(+), 109 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/aggregate/assign_object.py b/src/ifcopenshell-python/ifcopenshell/api/aggregate/assign_object.py index 68c02513da..3241892ccb 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/aggregate/assign_object.py +++ b/src/ifcopenshell-python/ifcopenshell/api/aggregate/assign_object.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py b/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py index f16baf4323..55bad8a5b2 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py +++ b/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py @@ -2,7 +2,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase(): - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py b/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py index 35f9b12b0d..f66135c23d 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/add_classification.py @@ -3,7 +3,7 @@ import ifcopenshell.util.schema import ifcopenshell.util.date class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "classification": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/add_reference.py b/src/ifcopenshell-python/ifcopenshell/api/classification/add_reference.py index 0363b2847a..921ad3d79f 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/add_reference.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/add_reference.py @@ -3,7 +3,7 @@ import ifcopenshell.util.schema class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/edit_classification.py b/src/ifcopenshell-python/ifcopenshell/api/classification/edit_classification.py index d1fb7ca8a3..12c60626f7 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/edit_classification.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/edit_classification.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "classification": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/edit_reference.py b/src/ifcopenshell-python/ifcopenshell/api/classification/edit_reference.py index d882746a85..a37391d11b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/edit_reference.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/edit_reference.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "reference": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py b/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py index 31351154f9..cae293c6ae 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"classification": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/remove_reference.py b/src/ifcopenshell-python/ifcopenshell/api/classification/remove_reference.py index 9e2868a551..d9172b675e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/remove_reference.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/remove_reference.py @@ -2,7 +2,7 @@ import ifcopenshell.util.schema class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"reference": None, "product": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/constraint/add_objective.py b/src/ifcopenshell-python/ifcopenshell/api/constraint/add_objective.py index 5891bfb49d..a6dc8e2108 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/constraint/add_objective.py +++ b/src/ifcopenshell-python/ifcopenshell/api/constraint/add_objective.py @@ -1,7 +1,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/constraint/assign_constraint.py b/src/ifcopenshell-python/ifcopenshell/api/constraint/assign_constraint.py index 7a626dbfd9..7dc946e911 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/constraint/assign_constraint.py +++ b/src/ifcopenshell-python/ifcopenshell/api/constraint/assign_constraint.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/constraint/edit_objective.py b/src/ifcopenshell-python/ifcopenshell/api/constraint/edit_objective.py index 724ec7afad..4b569581ee 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/constraint/edit_objective.py +++ b/src/ifcopenshell-python/ifcopenshell/api/constraint/edit_objective.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "objective": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/constraint/remove_constraint.py b/src/ifcopenshell-python/ifcopenshell/api/constraint/remove_constraint.py index 414bb767ae..09476c0b3f 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/constraint/remove_constraint.py +++ b/src/ifcopenshell-python/ifcopenshell/api/constraint/remove_constraint.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"constraint": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/constraint/unassign_constraint.py b/src/ifcopenshell-python/ifcopenshell/api/constraint/unassign_constraint.py index 316c93ba82..63b7d17a2b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/constraint/unassign_constraint.py +++ b/src/ifcopenshell-python/ifcopenshell/api/constraint/unassign_constraint.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/context/add_context.py b/src/ifcopenshell-python/ifcopenshell/api/context/add_context.py index b97b03a5c8..4c4d310834 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/context/add_context.py +++ b/src/ifcopenshell-python/ifcopenshell/api/context/add_context.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "context": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/context/remove_context.py b/src/ifcopenshell-python/ifcopenshell/api/context/remove_context.py index 4b8bb72488..1315d0b01a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/context/remove_context.py +++ b/src/ifcopenshell-python/ifcopenshell/api/context/remove_context.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"context": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/add_information.py b/src/ifcopenshell-python/ifcopenshell/api/document/add_information.py index fc1b639695..bb3013e0b9 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/add_information.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/add_information.py @@ -1,7 +1,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/add_reference.py b/src/ifcopenshell-python/ifcopenshell/api/document/add_reference.py index 7030f4fc32..0e631fefa9 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/add_reference.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/add_reference.py @@ -1,7 +1,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py b/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py index c7edab39bd..c056b988b0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/edit_information.py b/src/ifcopenshell-python/ifcopenshell/api/document/edit_information.py index bfef548722..1a86df4186 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/edit_information.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/edit_information.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "information": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/edit_reference.py b/src/ifcopenshell-python/ifcopenshell/api/document/edit_reference.py index d882746a85..a37391d11b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/edit_reference.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/edit_reference.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "reference": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/remove_document.py b/src/ifcopenshell-python/ifcopenshell/api/document/remove_document.py index a3235f1e89..0ebc89e101 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/remove_document.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/remove_document.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"document": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/document/unassign_document.py b/src/ifcopenshell-python/ifcopenshell/api/document/unassign_document.py index 5e6583fa48..ef90f03c67 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/document/unassign_document.py +++ b/src/ifcopenshell-python/ifcopenshell/api/document/unassign_document.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py index ab7bc53720..e9f774b040 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py @@ -6,7 +6,7 @@ from blenderbim.bim.module.geometry.helper import Helper class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): # TODO: This usecase currently depends on Blender's data model self.file = file self.settings = { diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_representation.py index 6c15038858..a8c43ccfa3 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_representation.py @@ -2,7 +2,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "representation": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_styles.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_styles.py index 9b1fa4e222..2fbc699a6c 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_styles.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_styles.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "shape_representation": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/edit_object_placement.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/edit_object_placement.py index 62c0a23321..0a96f64a87 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/edit_object_placement.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/edit_object_placement.py @@ -5,7 +5,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "matrix": np.eye(4)} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/map_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/map_representation.py index 3a72bb04b5..933f0f1ee4 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/map_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/map_representation.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"representation": None} self.ifc_vertices = [] diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/remove_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/remove_representation.py index e6bb797e0b..cad9044db3 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/remove_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/remove_representation.py @@ -2,7 +2,7 @@ import ifcopenshell.util.element class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"representation": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/unassign_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/unassign_representation.py index b189ebda24..68c564f23b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/unassign_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/unassign_representation.py @@ -3,7 +3,7 @@ import ifcopenshell.util.element class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "representation": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/georeference/add_georeferencing.py b/src/ifcopenshell-python/ifcopenshell/api/georeference/add_georeferencing.py index 1916628bc5..4d31164426 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/georeference/add_georeferencing.py +++ b/src/ifcopenshell-python/ifcopenshell/api/georeference/add_georeferencing.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file def execute(self): diff --git a/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py b/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py index abefe0f127..aafe61dd83 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py +++ b/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py @@ -2,7 +2,7 @@ import ifcopenshell.util.unit class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "map_conversion": {}, diff --git a/src/ifcopenshell-python/ifcopenshell/api/georeference/remove_georeferencing.py b/src/ifcopenshell-python/ifcopenshell/api/georeference/remove_georeferencing.py index 8d0334b55d..d06df550db 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/georeference/remove_georeferencing.py +++ b/src/ifcopenshell-python/ifcopenshell/api/georeference/remove_georeferencing.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file def execute(self): diff --git a/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py b/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py index 8e24c8b7e5..9de1815b3e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py +++ b/src/ifcopenshell-python/ifcopenshell/api/grid/create_axis_curve.py @@ -5,7 +5,7 @@ from mathutils import Matrix # For now, we depend on Blender class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "AxisCurve": None, # A Blender object diff --git a/src/ifcopenshell-python/ifcopenshell/api/grid/create_grid_axis.py b/src/ifcopenshell-python/ifcopenshell/api/grid/create_grid_axis.py index 65da89eb6c..6a98a6fc59 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/grid/create_grid_axis.py +++ b/src/ifcopenshell-python/ifcopenshell/api/grid/create_grid_axis.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "AxisTag": "A", diff --git a/src/ifcopenshell-python/ifcopenshell/api/group/add_group.py b/src/ifcopenshell-python/ifcopenshell/api/group/add_group.py index 6195f74a26..4a1c0af755 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/group/add_group.py +++ b/src/ifcopenshell-python/ifcopenshell/api/group/add_group.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.create_owner_history as create_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py b/src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py index 3a796ec5aa..33d3da78e7 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py +++ b/src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/group/edit_group.py b/src/ifcopenshell-python/ifcopenshell/api/group/edit_group.py index 0ec584d3f7..1111ce7f35 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/group/edit_group.py +++ b/src/ifcopenshell-python/ifcopenshell/api/group/edit_group.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "group": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/group/remove_group.py b/src/ifcopenshell-python/ifcopenshell/api/group/remove_group.py index 0167a5159e..9ead307c68 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/group/remove_group.py +++ b/src/ifcopenshell-python/ifcopenshell/api/group/remove_group.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"group": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/group/unassign_group.py b/src/ifcopenshell-python/ifcopenshell/api/group/unassign_group.py index e6e7f4e633..dc1d95df2a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/group/unassign_group.py +++ b/src/ifcopenshell-python/ifcopenshell/api/group/unassign_group.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/layer/add_layer.py b/src/ifcopenshell-python/ifcopenshell/api/layer/add_layer.py index 03a16945ee..edfe94275a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/layer/add_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/layer/add_layer.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py b/src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py index afd4fc3862..66fb65a748 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "item": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/layer/edit_layer.py b/src/ifcopenshell-python/ifcopenshell/api/layer/edit_layer.py index cc0ea934c2..0c2da2e637 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/layer/edit_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/layer/edit_layer.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "layer": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/layer/remove_layer.py b/src/ifcopenshell-python/ifcopenshell/api/layer/remove_layer.py index b14fb52b31..88bd925292 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/layer/remove_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/layer/remove_layer.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"layer": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/layer/unassign_layer.py b/src/ifcopenshell-python/ifcopenshell/api/layer/unassign_layer.py index b628d7cea7..9803ea2a13 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/layer/unassign_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/layer/unassign_layer.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "item": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/add_constituent.py b/src/ifcopenshell-python/ifcopenshell/api/material/add_constituent.py index 054285880c..f91dda0980 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/add_constituent.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/add_constituent.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"constituent_set": None, "material": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/add_layer.py b/src/ifcopenshell-python/ifcopenshell/api/material/add_layer.py index 984a8ef1a8..b5cb426eb9 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/add_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/add_layer.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"layer_set": None, "material": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/add_list_item.py b/src/ifcopenshell-python/ifcopenshell/api/material/add_list_item.py index e9dcadc9bf..9c52d74fc7 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/add_list_item.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/add_list_item.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"material_list": None, "material": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/add_material.py b/src/ifcopenshell-python/ifcopenshell/api/material/add_material.py index 2358d3a24c..48ee7b4511 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/add_material.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/add_material.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"Name": "Unnamed"} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py b/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py index fe99809af7..f7fc4be564 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/assign_material.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "type": "IfcMaterial", "material": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/edit_assigned_material.py b/src/ifcopenshell-python/ifcopenshell/api/material/edit_assigned_material.py index e1862604d9..f8dca15b0e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/edit_assigned_material.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/edit_assigned_material.py @@ -1,5 +1,5 @@ class Usecase(): - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "element": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/edit_constituent.py b/src/ifcopenshell-python/ifcopenshell/api/material/edit_constituent.py index c65ffeff7f..3ba02305d1 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/edit_constituent.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/edit_constituent.py @@ -1,5 +1,5 @@ class Usecase(): - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "constituent": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/edit_layer.py b/src/ifcopenshell-python/ifcopenshell/api/material/edit_layer.py index 4831f93f43..fa4fdffca2 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/edit_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/edit_layer.py @@ -1,5 +1,5 @@ class Usecase(): - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "layer": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile.py b/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile.py index d59013f1d6..f833922d30 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile.py @@ -1,5 +1,5 @@ class Usecase(): - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "profile": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/remove_constituent.py b/src/ifcopenshell-python/ifcopenshell/api/material/remove_constituent.py index 0ae10aca99..9c66ae6afc 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/remove_constituent.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/remove_constituent.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"constituent": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/remove_layer.py b/src/ifcopenshell-python/ifcopenshell/api/material/remove_layer.py index 2ab2466da4..d953c56a25 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/remove_layer.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/remove_layer.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"layer": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/remove_list_item.py b/src/ifcopenshell-python/ifcopenshell/api/material/remove_list_item.py index 411b66c4ec..6cafec8420 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/remove_list_item.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/remove_list_item.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"material_list": None, "material": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/remove_material.py b/src/ifcopenshell-python/ifcopenshell/api/material/remove_material.py index 6ef468f998..39ed5c0a68 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/remove_material.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/remove_material.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"material": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/reorder_set_item.py b/src/ifcopenshell-python/ifcopenshell/api/material/reorder_set_item.py index e61600dc0d..a4b722c6a5 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/reorder_set_item.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/reorder_set_item.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"material_set": None, "old_index": 0, "new_index": 0} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/unassign_material.py b/src/ifcopenshell-python/ifcopenshell/api/material/unassign_material.py index 257e304ce0..8a6fad3b53 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/unassign_material.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/unassign_material.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/add_address.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_address.py index c22a9806c1..14d2a48fac 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/add_address.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/add_address.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"assigned_object": None, "ifc_class": "IfcPostalAddress"} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py index 5b373d5043..6635fdcb8a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/add_organisation.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "Identification": "APTR", diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py index 9ab1712fb2..f136af8d16 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/add_person.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "Identification": "HSeldon", diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/add_role.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_role.py index a665a2c8b7..a934f927bb 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/add_role.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/add_role.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"assigned_object": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py b/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py index eff35c5e87..059fadf22e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.settings class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = ifcopenshell.api.owner.settings.settings for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py index b4ffd65b0d..4abb9d5542 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "address": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_organisation.py b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_organisation.py index 8643d5a71e..c9705ac7cb 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_organisation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_organisation.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "organisation": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_person.py b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_person.py index e2c723f02b..f8f96afe94 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_person.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_person.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "person": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_role.py b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_role.py index 859d3f6156..fda91bee32 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_role.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_role.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "role": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_address.py b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_address.py index 05705915d5..2362f4a24d 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_address.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_address.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"address": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_organisation.py b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_organisation.py index bc0514e5d4..0287a9c5e5 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_organisation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_organisation.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"organisation": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_person.py b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_person.py index 75148e23f8..66a88d783f 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_person.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_person.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"person": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_role.py b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_role.py index 05314ead4d..2218616a44 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/remove_role.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/remove_role.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"role": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/update_owner_history.py b/src/ifcopenshell-python/ifcopenshell/api/owner/update_owner_history.py index 9e15a4ab50..0e9d5a4758 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/update_owner_history.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/update_owner_history.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.create_owner_history as create_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = ifcopenshell.api.owner.settings.settings for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py b/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py index 63a0c89f57..9e4fd31796 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py @@ -3,7 +3,7 @@ import ifcopenshell class Usecase: - def __init__(self, settings={}): + def __init__(self, **settings): self.settings = {"version": "IFC4"} for key, value in settings.items(): self.settings[key] = value diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py b/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py index 532ca52a67..37062d3845 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/add_pset.py @@ -3,7 +3,7 @@ import blenderbim.bim.schema # TODO: refactor class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "Name": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/add_qto.py b/src/ifcopenshell-python/ifcopenshell/api/pset/add_qto.py index dbc1c32321..b55522da08 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/add_qto.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/add_qto.py @@ -3,7 +3,7 @@ import blenderbim.bim.schema # TODO: refactor class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "Name": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py index c75c51dff3..dd76185234 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py @@ -2,7 +2,7 @@ import blenderbim.bim.schema # TODO: refactor class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"pset": None, "Name": None, "Properties": {}} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py index 8b4c1231db..bd43f646af 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_qto.py @@ -2,7 +2,7 @@ import blenderbim.bim.schema # TODO: refactor class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"qto": None, "Name": None, "Properties": {}} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/remove_pset.py b/src/ifcopenshell-python/ifcopenshell/api/pset/remove_pset.py index 84ff3eebe1..2c742a65cb 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/remove_pset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/remove_pset.py @@ -2,7 +2,7 @@ import blenderbim.bim.schema # TODO: refactor class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None, "pset": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py index 7093d3fbd8..b57b36cf82 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_prop_template.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"pset_template": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_pset_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_pset_template.py index 613298aa96..341790790b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_pset_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/add_pset_template.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_prop_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_prop_template.py index 775aefa5b4..5ad617f698 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_prop_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_prop_template.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"prop_template": None, "attributes": {}} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_pset_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_pset_template.py index 0c79e396f8..8d039b9e32 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_pset_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_pset_template.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"pset_template": None, "attributes": {}} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_prop_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_prop_template.py index dcc373d42d..0221852eea 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_prop_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_prop_template.py @@ -2,7 +2,7 @@ import ifcopenshell.util.element class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "prop_template": None diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_pset_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_pset_template.py index d9127b2828..16f0246782 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_pset_template.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset_template/remove_pset_template.py @@ -2,7 +2,7 @@ import ifcopenshell.util.element class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "pset_template": None diff --git a/src/ifcopenshell-python/ifcopenshell/api/root/copy_class.py b/src/ifcopenshell-python/ifcopenshell/api/root/copy_class.py index e185e5fa07..9300ebd0e6 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/root/copy_class.py +++ b/src/ifcopenshell-python/ifcopenshell/api/root/copy_class.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/root/create_product.py b/src/ifcopenshell-python/ifcopenshell/api/root/create_product.py index bd9852a506..c077c75041 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/root/create_product.py +++ b/src/ifcopenshell-python/ifcopenshell/api/root/create_product.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.create_owner_history as create_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "ifc_class": "IfcBuildingElementProxy", diff --git a/src/ifcopenshell-python/ifcopenshell/api/root/reassign_class.py b/src/ifcopenshell-python/ifcopenshell/api/root/reassign_class.py index f3a869ecb3..bebb563e76 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/root/reassign_class.py +++ b/src/ifcopenshell-python/ifcopenshell/api/root/reassign_class.py @@ -3,7 +3,7 @@ import ifcopenshell.util.schema class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/root/remove_product.py b/src/ifcopenshell-python/ifcopenshell/api/root/remove_product.py index ed6c4fa144..4caa5dd0e2 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/root/remove_product.py +++ b/src/ifcopenshell-python/ifcopenshell/api/root/remove_product.py @@ -3,7 +3,7 @@ import ifcopenshell.api.geometry.remove_representation as remove_representation class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py index 327ba37666..97ee3f5c37 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py +++ b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/spatial/remove_container.py b/src/ifcopenshell-python/ifcopenshell/api/spatial/remove_container.py index 7d64afca60..1189cac838 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/spatial/remove_container.py +++ b/src/ifcopenshell-python/ifcopenshell/api/spatial/remove_container.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"product": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_analysis_model.py b/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_analysis_model.py index 2fcee43e98..778fa89e13 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_analysis_model.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_analysis_model.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.create_owner_history as create_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_boundary_condition.py b/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_boundary_condition.py index 4a3e8412c1..35449e7cfc 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_boundary_condition.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/add_structural_boundary_condition.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"connection": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/assign_structural_analysis_model.py b/src/ifcopenshell-python/ifcopenshell/api/structural/assign_structural_analysis_model.py index f6a93d1f86..bf20e158a9 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/assign_structural_analysis_model.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/assign_structural_analysis_model.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_analysis_model.py b/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_analysis_model.py index 3e003870b9..9fe0dfd108 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_analysis_model.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_analysis_model.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "structural_analysis_model": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py b/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py index 5b1e3d75e3..0862310e6f 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "condition": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_analysis_model.py b/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_analysis_model.py index b191fb588c..89c214ed3d 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_analysis_model.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_analysis_model.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"structural_analysis_model": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_boundary_condition.py b/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_boundary_condition.py index 67626af084..afee179e0b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_boundary_condition.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/remove_structural_boundary_condition.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"connection": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/unassign_structural_analysis_model.py b/src/ifcopenshell-python/ifcopenshell/api/structural/unassign_structural_analysis_model.py index 21abe36004..6f3c8b2164 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/unassign_structural_analysis_model.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/unassign_structural_analysis_model.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/style/add_style.py b/src/ifcopenshell-python/ifcopenshell/api/style/add_style.py index a105c7bcac..6221a33674 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/style/add_style.py +++ b/src/ifcopenshell-python/ifcopenshell/api/style/add_style.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "Name": "Name", diff --git a/src/ifcopenshell-python/ifcopenshell/api/style/edit_style.py b/src/ifcopenshell-python/ifcopenshell/api/style/edit_style.py index 9d2e328047..61cd9311d0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/style/edit_style.py +++ b/src/ifcopenshell-python/ifcopenshell/api/style/edit_style.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "style": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py b/src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py index b54d2b9e27..61b61240ec 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py +++ b/src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py @@ -4,7 +4,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "related_object": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/type/get_related_objects.py b/src/ifcopenshell-python/ifcopenshell/api/type/get_related_objects.py index 3d8b06f451..63380a8412 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/type/get_related_objects.py +++ b/src/ifcopenshell-python/ifcopenshell/api/type/get_related_objects.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "related_object": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py b/src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py index d7c1ded6ce..061d3e1562 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py +++ b/src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.update_owner_history as update_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "related_object": None diff --git a/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py b/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py index 773c3dc3a9..f99e41220b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py +++ b/src/ifcopenshell-python/ifcopenshell/api/unit/assign_unit.py @@ -2,7 +2,7 @@ import ifcopenshell.util.unit class Usecase(): - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = { "length": { diff --git a/src/ifcopenshell-python/ifcopenshell/api/void/add_filling.py b/src/ifcopenshell-python/ifcopenshell/api/void/add_filling.py index 99430efe83..48393d1874 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/void/add_filling.py +++ b/src/ifcopenshell-python/ifcopenshell/api/void/add_filling.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"opening": None, "element": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py b/src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py index a2ce7b92fe..46a298ddc8 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py +++ b/src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py @@ -3,7 +3,7 @@ import ifcopenshell.api.owner.create_owner_history as create_owner_history class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"opening": None, "element": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/void/remove_filling.py b/src/ifcopenshell-python/ifcopenshell/api/void/remove_filling.py index be70d1382f..a805d44b41 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/void/remove_filling.py +++ b/src/ifcopenshell-python/ifcopenshell/api/void/remove_filling.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"element": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/api/void/remove_opening.py b/src/ifcopenshell-python/ifcopenshell/api/void/remove_opening.py index f0fa8cf6b2..d89d44c2e0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/void/remove_opening.py +++ b/src/ifcopenshell-python/ifcopenshell/api/void/remove_opening.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings={}): + def __init__(self, file, **settings): self.file = file self.settings = {"opening": None} for key, value in settings.items():