From a8ae234039a53a59bfad0e94f421f1d498cbec45 Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Sun, 19 Jul 2026 22:34:56 +0300 Subject: [PATCH] ci-lint: black-format two files that drifted on v0.8.0 Both files were merged unformatted and fail the Black formatter step on every branch, keeping ci-lint red repo-wide. Generated with the assistance of an AI coding tool. (cherry picked from commit 6014bbd877623ec6e91323619138760d0add297c) --- src/bonsai/bonsai/bim/module/type/operator.py | 4 +--- src/ifcopenshell-python/test/test_parse.py | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/type/operator.py b/src/bonsai/bonsai/bim/module/type/operator.py index 629cd6bd4c..c95eee1898 100644 --- a/src/bonsai/bonsai/bim/module/type/operator.py +++ b/src/bonsai/bonsai/bim/module/type/operator.py @@ -117,9 +117,7 @@ class UnassignType(bpy.types.Operator, tool.Ifc.Operator): related_object: str @staticmethod - def _reattach_styles( - file: ifcopenshell.file, copied_entities: dict[int, ifcopenshell.entity_instance] - ) -> None: + def _reattach_styles(file: ifcopenshell.file, copied_entities: dict[int, ifcopenshell.entity_instance]) -> None: """copy_deep only follows forward references, so IfcStyledItem (an inverse, ``StyledByItem``) is not carried onto the copied geometry. Re-create a styled item on each copy that points at the same presentation styles as diff --git a/src/ifcopenshell-python/test/test_parse.py b/src/ifcopenshell-python/test/test_parse.py index f1585cc0f0..4f3617ebca 100644 --- a/src/ifcopenshell-python/test/test_parse.py +++ b/src/ifcopenshell-python/test/test_parse.py @@ -20,7 +20,9 @@ END-ISO-10303-21; def test_reference_to_undefined_owning_instance(): - data = "ISO-10303-21;HEADER;FILE_DESCRIPTION();FILE_NAME();FILE_SCHEMA(('IFC4'));#=IFCRELAGGREGATES((#))#5=IFCPOINT)" + data = ( + "ISO-10303-21;HEADER;FILE_DESCRIPTION();FILE_NAME();FILE_SCHEMA(('IFC4'));#=IFCRELAGGREGATES((#))#5=IFCPOINT)" + ) ifcopenshell.file.from_string(data) print(ifcopenshell.get_log())