diff --git a/src/ifcopenshell-python/ifcopenshell/api/aggregate/assign_object.py b/src/ifcopenshell-python/ifcopenshell/api/aggregate/assign_object.py index cc4d199f56..5247eef42b 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 @@ from ifcopenshell.api.owner.api import update_owner_history class Usecase: - def __init__(self, file, settings=None): + 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 ea9b978dd6..608474f37e 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 @@ from ifcopenshell.api.owner.api import update_owner_history class Usecase(): - def __init__(self, file, settings=None): + 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 7c16292e9f..35f9b12b0d 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=None): + 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 5c880510eb..0363b2847a 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=None): + 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 58fd59ea9a..d1fb7ca8a3 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=None): + 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 b538bafb46..d882746a85 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=None): + 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 a6708c871c..31351154f9 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=None): + 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 5ca45a19cf..9e2868a551 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=None): + 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/assign_constraint.py b/src/ifcopenshell-python/ifcopenshell/api/constraint/assign_constraint.py index 6a8a8755ae..7a626dbfd9 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=None): + 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 9a1003ba70..724ec7afad 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=None): + 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 27b0938322..414bb767ae 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=None): + 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 0c47723a59..316c93ba82 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=None): + 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 2d478b6173..b97b03a5c8 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=None): + 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 ce17b0ef2d..4b8bb72488 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=None): + 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/assign_document.py b/src/ifcopenshell-python/ifcopenshell/api/document/assign_document.py index b7295a3905..c7edab39bd 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=None): + 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 6071bf5d95..bfef548722 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=None): + 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 b538bafb46..d882746a85 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=None): + 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 4f3137bf9d..a3235f1e89 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=None): + 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 a1bdf6c158..5e6583fa48 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=None): + 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 ad0e32225c..ab7bc53720 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=None): + 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 482fce9451..50ef13ba40 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/assign_representation.py @@ -1,5 +1,5 @@ class Usecase: - def __init__(self, file, settings=None): + 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 e4ad0a1e36..9b1fa4e222 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=None): + 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 97070ec8ad..bf50407a0b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/edit_object_placement.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/edit_object_placement.py @@ -4,7 +4,7 @@ import ifcopenshell.util.placement class Usecase: - def __init__(self, file, settings=None): + 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 58b3218c99..3a72bb04b5 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=None): + 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 2d8e95ef33..e6bb797e0b 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=None): + 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 3da91d5787..b189ebda24 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=None): + 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 6979fdca09..1916628bc5 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=None): + 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 8e21d061f5..abefe0f127 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=None): + 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 4b57823afb..8d0334b55d 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=None): + 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 009e405f6e..8e24c8b7e5 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=None): + 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 979ededc75..65da89eb6c 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=None): + def __init__(self, file, settings={}): self.file = file self.settings = { "AxisTag": "A", diff --git a/src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py b/src/ifcopenshell-python/ifcopenshell/api/group/assign_group.py index 73e86e80d0..109899c2cc 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 @@ from ifcopenshell.api.owner.api import update_owner_history class Usecase: - def __init__(self, file, settings=None): + 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 584fb7f091..0ec584d3f7 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=None): + 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 6acddf7b10..0167a5159e 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=None): + 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 92e43fe408..7f66f4bd85 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 @@ from ifcopenshell.api.owner.api import update_owner_history class Usecase: - def __init__(self, file, settings=None): + def __init__(self, file, settings={}): self.file = file self.settings = { "product": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py b/src/ifcopenshell-python/ifcopenshell/api/layer/assign_layer.py index e433de6715..afd4fc3862 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=None): + 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 a07d90cd0f..cc0ea934c2 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=None): + 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 005ff1fec6..b14fb52b31 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=None): + 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 33584f7ccc..b628d7cea7 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=None): + 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 e22431aa63..054285880c 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=None): + 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 19b0da8ee2..984a8ef1a8 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=None): + 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 db020647c9..e9dcadc9bf 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=None): + 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 94184b3d8e..2358d3a24c 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=None): + 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 766f690774..fe99809af7 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=None): + 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 f74956736d..e1862604d9 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=None): + 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 c6c2d24749..c65ffeff7f 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=None): + 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 440e5e9fa4..4831f93f43 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=None): + 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 c41a5152f7..d59013f1d6 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=None): + 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 84d930bb52..0ae10aca99 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=None): + 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 09740f8eb8..2ab2466da4 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=None): + 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 741cf44149..411b66c4ec 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=None): + 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 0cbcf804e8..6ef468f998 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=None): + 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 c4f15373fc..e61600dc0d 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=None): + 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 a02c548502..257e304ce0 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=None): + 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 26beaeb9cb..c22a9806c1 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=None): + 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_role.py b/src/ifcopenshell-python/ifcopenshell/api/owner/add_role.py index dfbe523db9..a665a2c8b7 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=None): + 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 f91b275375..2648bb5a9c 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py @@ -3,7 +3,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + def __init__(self, file, settings={}): self.file = file self.settings = { "person": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py b/src/ifcopenshell-python/ifcopenshell/api/owner/edit_address.py index fcc14d455f..b4ffd65b0d 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=None): + 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 661c29c022..8643d5a71e 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=None): + 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 afeaa9b429..e2c723f02b 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=None): + 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 f081a850f7..859d3f6156 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=None): + 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 9891d04062..05705915d5 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=None): + 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 567ea52d99..bc0514e5d4 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=None): + 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 f9e4a6e9fe..75148e23f8 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=None): + 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 446d0e7a39..05314ead4d 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=None): + 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 7456e4c19b..f3be648180 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/update_owner_history.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/update_owner_history.py @@ -3,7 +3,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + def __init__(self, file, settings={}): self.file = file self.settings = { "OwnerHistory": None, diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py b/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py index e4e442f75c..63a0c89f57 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=None): + 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 17d2612ddf..532ca52a67 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=None): + 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 5df089d98e..dbc1c32321 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=None): + 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 0fc34751b1..c75c51dff3 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=None): + 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 95a672b850..8b4c1231db 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=None): + 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 3ccdf6d0ef..84ff3eebe1 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=None): + 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/edit_prop_template.py b/src/ifcopenshell-python/ifcopenshell/api/pset_template/edit_prop_template.py index 5e7ed302ae..775aefa5b4 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=None): + 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 3d5f1caa8b..0c79e396f8 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=None): + 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 68e20e6135..dcc373d42d 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=None): + 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 b58e21284f..d9127b2828 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=None): + 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 04ba418578..e185e5fa07 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=None): + 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 ae74c11b52..028d5066fd 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 @@ from ifcopenshell.api.owner.api import create_owner_history class Usecase: - def __init__(self, file, settings=None): + 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 2179e3f0fa..f3a869ecb3 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=None): + 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 cbb0269a1c..ed6c4fa144 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=None): + 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 afbe536700..6c1f7b5d47 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py +++ b/src/ifcopenshell-python/ifcopenshell/api/spatial/assign_container.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + 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 57b9a75af3..92b941cd51 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/spatial/remove_container.py +++ b/src/ifcopenshell-python/ifcopenshell/api/spatial/remove_container.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + 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/style/add_style.py b/src/ifcopenshell-python/ifcopenshell/api/style/add_style.py index f4cef0abe7..a105c7bcac 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=None): + 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 e83397eece..9d2e328047 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=None): + 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 fe936f02d2..417bc81b11 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py +++ b/src/ifcopenshell-python/ifcopenshell/api/type/assign_type.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + 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 9226799575..3d8b06f451 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=None): + 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 e20ba75a2d..f5d288ef3a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py +++ b/src/ifcopenshell-python/ifcopenshell/api/type/unassign_type.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + 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 3872a50829..773c3dc3a9 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=None): + 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 0acb8b6c48..99430efe83 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=None): + 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 5e813b405c..2c5a646da9 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py +++ b/src/ifcopenshell-python/ifcopenshell/api/void/add_opening.py @@ -2,7 +2,7 @@ import ifcopenshell class Usecase: - def __init__(self, file, settings=None): + 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 105acb9160..be70d1382f 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=None): + 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 cc84466790..f0fa8cf6b2 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=None): + def __init__(self, file, settings={}): self.file = file self.settings = {"opening": None} for key, value in settings.items(): diff --git a/src/ifcopenshell-python/ifcopenshell/geom/app.py b/src/ifcopenshell-python/ifcopenshell/geom/app.py index 43d5762584..b4099ee9cc 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/app.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/app.py @@ -615,7 +615,7 @@ class application(QtWidgets.QApplication): return handler - def __init__(self, settings=None): + def __init__(self, settings={}): QtWidgets.QApplication.__init__(self, sys.argv) self.window = application.window() self.tree = application.decomposition_treeview() diff --git a/src/ifcopenshell-python/ifcopenshell/geom/main.py b/src/ifcopenshell-python/ifcopenshell/geom/main.py index e8040d2814..062fc2c980 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/main.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/main.py @@ -124,7 +124,7 @@ class iterator(_iterator): class tree(ifcopenshell_wrapper.tree): - def __init__(self, file=None, settings=None): + def __init__(self, file=None, settings={}): args = [self] if file is not None: args.append(file.wrapped_data)