From b93cbbf989fe3f34a35137ad66dbeb7942c0d292 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 18 Feb 2025 13:37:53 +0500 Subject: [PATCH] black . --- src/bonsai/bonsai/bim/module/search/operator.py | 1 + src/bonsai/scripts/replace_drawing_path.py | 2 +- src/ifc4d/ifc4d/wpattern.py | 2 +- src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py | 2 +- src/ifcopenshell-python/ifcopenshell/util/attribute.py | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/search/operator.py b/src/bonsai/bonsai/bim/module/search/operator.py index be4f2e1e9e..5083fb2445 100644 --- a/src/bonsai/bonsai/bim/module/search/operator.py +++ b/src/bonsai/bonsai/bim/module/search/operator.py @@ -556,6 +556,7 @@ class ResetObjectColours(Operator): class ToggleFilterSelection(Operator): "Click to select/deselect current selection" + bl_idname = "bim.toggle_filter_selection" bl_label = "Toggle Filter Selection" action: EnumProperty(items=(("SELECT", "Select", ""), ("DESELECT", "Deselect", ""))) diff --git a/src/bonsai/scripts/replace_drawing_path.py b/src/bonsai/scripts/replace_drawing_path.py index 97f00c8986..b874614502 100644 --- a/src/bonsai/scripts/replace_drawing_path.py +++ b/src/bonsai/scripts/replace_drawing_path.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with IfcPatch. If not, see . -""" This script regenerates all drawing paths in case they have been created in a different operating system. +"""This script regenerates all drawing paths in case they have been created in a different operating system. It is useful when an annotation drawing has been created on windows and you want to recreate the drawig in linux. diff --git a/src/ifc4d/ifc4d/wpattern.py b/src/ifc4d/ifc4d/wpattern.py index 72a150aea9..2e434223d5 100644 --- a/src/ifc4d/ifc4d/wpattern.py +++ b/src/ifc4d/ifc4d/wpattern.py @@ -1,7 +1,7 @@ """ This class parses the calendar work pattern and retruns a list The list returned has a key DayOfWeek which takes a value Sunday to Saturday -for each day as a key there is a list of working times with the format +for each day as a key there is a list of working times with the format {"Start": datetime.time, "Finish": datetime.time} """ diff --git a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py index 21ef97ac65..eb3fa7ac52 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py @@ -232,7 +232,7 @@ def serialize_shape(shape): def create_shape_from_serialization( - brep_object: Union[ifcopenshell_wrapper.SerializedElement, ifcopenshell_wrapper.Serialization] + brep_object: Union[ifcopenshell_wrapper.SerializedElement, ifcopenshell_wrapper.Serialization], ) -> Union[shape_tuple, TopoDS.TopoDS_Shape]: brep_data, occ_shape, styles, style_ids = None, None, (), () diff --git a/src/ifcopenshell-python/ifcopenshell/util/attribute.py b/src/ifcopenshell-python/ifcopenshell/util/attribute.py index f29f60ed8b..06cd10fcff 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/attribute.py +++ b/src/ifcopenshell-python/ifcopenshell/util/attribute.py @@ -21,7 +21,7 @@ from typing import Union def get_primitive_type( - attribute_or_data_type: Union[ifcopenshell_wrapper.attribute, ifcopenshell_wrapper.parameter_type] + attribute_or_data_type: Union[ifcopenshell_wrapper.attribute, ifcopenshell_wrapper.parameter_type], ) -> Union[str, tuple[str, list[str]]]: if hasattr(attribute_or_data_type, "type_of_attribute"): data_type = str(attribute_or_data_type.type_of_attribute())