Skip to content

Commit 312e5b5

Browse files
committed
precommit..
1 parent 4ca6660 commit 312e5b5

File tree

1 file changed

+22
-8
lines changed
  • tiatoolbox/visualization/bokeh_app

1 file changed

+22
-8
lines changed

tiatoolbox/visualization/bokeh_app/main.py

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,10 @@ def create_channel_color_ui() -> Column:
221221

222222
color_picker = ColorPicker(title="Channel Color", width=100)
223223

224-
def update_selected_color( # noqa: ARG001 # skipcq: PYL-W0613
225-
attr: str, old: str, new: str
224+
def update_selected_color(
225+
attr: str, # noqa: ARG001 # skipcq: PYL-W0613
226+
old: str, # noqa: ARG001 # skipcq: PYL-W0613
227+
new: str,
226228
) -> None:
227229
"""Update the selected color in multichannel ui."""
228230
selected = color_source.selected.indices
@@ -245,8 +247,10 @@ def apply_changes() -> None:
245247

246248
apply_button.on_click(apply_changes)
247249

248-
def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
249-
attr: str, old: str, new: str
250+
def update_color_picker(
251+
attr: str, # noqa: ARG001 # skipcq: PYL-W0613
252+
old: str, # noqa: ARG001 # skipcq: PYL-W0613
253+
new: str,
250254
) -> None:
251255
"""Update the color picker when a new channel is selected."""
252256
if new:
@@ -266,8 +270,10 @@ def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
266270
width=200,
267271
)
268272

269-
def enhance_cb( # noqa: ARG001 # skipcq: PYL-W0613
270-
attr: str, old: str, new: str
273+
def enhance_cb(
274+
attr: str, # noqa: ARG001 # skipcq: PYL-W0613
275+
old: str, # noqa: ARG001 # skipcq: PYL-W0613
276+
new: str,
271277
) -> None:
272278
"""Enhance slider callback."""
273279
UI["s"].put(
@@ -935,14 +941,22 @@ def populate_slide_list(slide_folder: Path, search_txt: str | None = None) -> No
935941
UI["slide_select"].options = file_list
936942

937943

938-
def filter_input_cb(attr: str, old: str, new: str) -> None: # noqa: ARG001 # skipcq: PYL-W0613
944+
def filter_input_cb(
945+
attr: str, # noqa: ARG001 # skipcq: PYL-W0613
946+
old: str, # noqa: ARG001 # skipcq: PYL-W0613
947+
new: str, # noqa: ARG001 # skipcq: PYL-W0613
948+
) -> None:
939949
"""Change predicate to be used to filter annotations."""
940950
build_predicate()
941951
UI["vstate"].update_state = 1
942952
UI["vstate"].to_update.update(["overlay"])
943953

944954

945-
def cprop_input_cb(attr: str, old: str, new: list[str]) -> None: # noqa: ARG001 # skipcq: PYL-W0613
955+
def cprop_input_cb(
956+
attr: str, # noqa: ARG001 # skipcq: PYL-W0613
957+
old: str, # noqa: ARG001 # skipcq: PYL-W0613
958+
new: list[str],
959+
) -> None:
946960
"""Change property to color by."""
947961
if len(new) == 0:
948962
return

0 commit comments

Comments
 (0)