From 381fca0812206139c0dfee943fa20773b430f638 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 9 May 2025 19:26:20 +0500 Subject: [PATCH] black . --- src/bonsai/bonsai/bim/module/drawing/annotation.py | 2 +- src/ifcopenshell-python/test/api/project/test_append_asset.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/annotation.py b/src/bonsai/bonsai/bim/module/drawing/annotation.py index 274b016884..23d243671d 100644 --- a/src/bonsai/bonsai/bim/module/drawing/annotation.py +++ b/src/bonsai/bonsai/bim/module/drawing/annotation.py @@ -131,7 +131,7 @@ class Annotator: ) -> bpy.types.Object: camera = tool.Ifc.get_object(drawing) # those annotations you want to obey the depth of the 3d cursor - if object_type == 'PLAN_LEVEL': + if object_type == "PLAN_LEVEL": co1 = bpy.context.scene.cursor.location.copy() else: co1, _, _, _ = Annotator.get_placeholder_coords(camera) diff --git a/src/ifcopenshell-python/test/api/project/test_append_asset.py b/src/ifcopenshell-python/test/api/project/test_append_asset.py index 3028269931..5fc6127c21 100644 --- a/src/ifcopenshell-python/test/api/project/test_append_asset.py +++ b/src/ifcopenshell-python/test/api/project/test_append_asset.py @@ -85,7 +85,9 @@ class TestAppendAssetIFC2X3(test.bootstrap.IFC2X3): library = ifcopenshell.api.project.create_file(version=self.file.schema) ifcopenshell.api.root.create_entity(library, ifc_class="IfcProject") lib_context = ifcopenshell.api.context.add_context(library, context_type="Model") - lib_subcontext = ifcopenshell.api.context.add_context(library, context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=lib_context) + lib_subcontext = ifcopenshell.api.context.add_context( + library, context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=lib_context + ) # It has no contexts right now ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcProject")