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())