From ce154cc8d2ac682a2a33b8e65f18b4650934677a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 6 Aug 2025 16:59:51 +0500 Subject: [PATCH] prop_with_search - move new args to kw-only for readibility --- src/bonsai/bonsai/bim/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/helper.py b/src/bonsai/bonsai/bim/helper.py index bda029cd20..f7f0e52236 100644 --- a/src/bonsai/bonsai/bim/helper.py +++ b/src/bonsai/bonsai/bim/helper.py @@ -360,9 +360,9 @@ def prop_with_search( prop_name: str, should_click_ok: bool = False, original_operator_path: Optional[str] = None, + *, enable_relating_type_suggestions: bool = True, search_threshold: int = 10, - *, button_kwargs: Union[dict[str, Any], None] = None, **kwargs: Any, ) -> bpy.types.UILayout: @@ -374,7 +374,7 @@ def prop_with_search( :arg button_kwargs: kwargs to pass to ``UILayout.operator()``. :arg kwargs: kwargs to pass to ``UILayout.prop()``. :arg enable_relating_type_suggestions: Enable additional suggestions for relating type properties. - :arg search_threshold: Minimum number of enum items required to show search button. Default is 10. + :arg search_threshold: Minimum number of enum items required to show search button. :return: Added row. """ # kwargs are layout.prop arguments (text, icon, etc.)