From 839c5ad932278d6a423bd3596461e863742a4953 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 6 Oct 2025 10:58:42 +0500 Subject: [PATCH] black . --- src/bonsai/bonsai/core/drawing.py | 2 +- src/bonsai/bonsai/core/geometry.py | 3 +-- src/ifctester/ifctester/reporter.py | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bonsai/bonsai/core/drawing.py b/src/bonsai/bonsai/core/drawing.py index cdf97a41fa..0345f4019a 100644 --- a/src/bonsai/bonsai/core/drawing.py +++ b/src/bonsai/bonsai/core/drawing.py @@ -440,7 +440,7 @@ def add_annotation( drawing_tool.show_decorations() obj = drawing_tool.create_annotation_object(drawing, object_type) element = ifc.get_entity(obj) - if not element: # Brand new annotation + if not element: # Brand new annotation relating_type_rep = drawing_tool.get_annotation_representation(relating_type) if relating_type else None element = drawing_tool.run_root_assign_class( obj=obj, diff --git a/src/bonsai/bonsai/core/geometry.py b/src/bonsai/bonsai/core/geometry.py index b70dbc69e5..7f35d3bd2a 100644 --- a/src/bonsai/bonsai/core/geometry.py +++ b/src/bonsai/bonsai/core/geometry.py @@ -117,8 +117,7 @@ def switch_representation( representation: ifcopenshell.entity_instance, apply_openings: bool = True, ) -> None: - """Switch obj representation (even if not yet assigned to that object. See #2766.) - """ + """Switch obj representation (even if not yet assigned to that object. See #2766.)""" if not geometry.get_object_data(obj) and geometry.is_text_literal(representation): return diff --git a/src/ifctester/ifctester/reporter.py b/src/ifctester/ifctester/reporter.py index 059b8123db..2ce8a8c45f 100644 --- a/src/ifctester/ifctester/reporter.py +++ b/src/ifctester/ifctester/reporter.py @@ -237,7 +237,7 @@ class Txt(Console): class Json(Reporter): - def __init__(self, ids: Ids,hide_skipped = False): + def __init__(self, ids: Ids, hide_skipped=False): super().__init__(ids) self.results = Results() self.results["hide_skipped"] = hide_skipped @@ -462,7 +462,7 @@ class Html(Json): requirement["total_omitted_passes"] = total_passed_entities - self.entity_limit requirement["has_omitted_passes"] = total_passed_entities > self.entity_limit requirement["instructions"] = requirement["metadata"].get("@instructions") - + def limit_entities(self, entities): if len(entities) > self.entity_limit: if entities[0]["element_type"]: