From 7f40491e41313e0877e08408f2827cae46bee929 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 15 Nov 2024 18:20:50 +0500 Subject: [PATCH] black . --- src/bonsai/bonsai/bim/module/pset_template/operator.py | 6 +++--- src/ifcopenshell-python/ifcopenshell/file.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/pset_template/operator.py b/src/bonsai/bonsai/bim/module/pset_template/operator.py index f5386c6f9f..7db566ec4c 100644 --- a/src/bonsai/bonsai/bim/module/pset_template/operator.py +++ b/src/bonsai/bonsai/bim/module/pset_template/operator.py @@ -82,7 +82,7 @@ class RemovePsetTemplate(bpy.types.Operator, tool.PsetTemplate.PsetTemplateOpera ifcopenshell.api.run( "pset_template.remove_pset_template", self.template_file, - **{"pset_template": self.template_file.by_id(current_pset_template_id)} + **{"pset_template": self.template_file.by_id(current_pset_template_id)}, ) self.template_file.write(IfcStore.pset_template_path) bonsai.bim.handler.refresh_ui_data() @@ -196,7 +196,7 @@ class EditPsetTemplate(bpy.types.Operator, tool.PsetTemplate.PsetTemplateOperato "TemplateType": props.active_pset_template.template_type, "ApplicableEntity": props.active_pset_template.applicable_entity, }, - } + }, ) bpy.ops.bim.disable_editing_pset_template() IfcStore.pset_template_file.write(IfcStore.pset_template_path) @@ -269,7 +269,7 @@ class RemovePropTemplate(bpy.types.Operator, tool.PsetTemplate.PsetTemplateOpera ifcopenshell.api.run( "pset_template.remove_prop_template", IfcStore.pset_template_file, - **{"prop_template": IfcStore.pset_template_file.by_id(self.prop_template)} + **{"prop_template": IfcStore.pset_template_file.by_id(self.prop_template)}, ) IfcStore.pset_template_file.write(IfcStore.pset_template_path) bonsai.bim.handler.refresh_ui_data() diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 9fb6165eba..db450e3ff0 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -199,6 +199,7 @@ NO_HEADER = ifcopenshell_wrapper.file_open_status.NO_HEADER UNSUPPORTED_SCHEMA = ifcopenshell_wrapper.file_open_status.UNSUPPORTED_SCHEMA INVALID_SYNTAX = ifcopenshell_wrapper.file_open_status.INVALID_SYNTAX + class file: """Base class for containing IFC files.