Skip to content

Commit 0fc500e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0425917 commit 0fc500e

File tree

1 file changed

+9
-13
lines changed
  • tiatoolbox/visualization/bokeh_app

1 file changed

+9
-13
lines changed

tiatoolbox/visualization/bokeh_app/main.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,9 @@ 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,
226-
old: str,
227-
new: str
228-
) -> None:
224+
def update_selected_color( # skipcq: PYL-W0613
225+
attr: str, old: str, new: str
226+
) -> None:
229227
"""Update the selected color in multichannel ui."""
230228
selected = color_source.selected.indices
231229
if selected:
@@ -247,10 +245,9 @@ def apply_changes() -> None:
247245

248246
apply_button.on_click(apply_changes)
249247

250-
def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
251-
attr: str,
252-
old: str,
253-
new: str) -> None:
248+
def update_color_picker( # skipcq: PYL-W0613
249+
attr: str, old: str, new: str
250+
) -> None:
254251
"""Update the color picker when a new channel is selected."""
255252
if new:
256253
selected_color = color_source.data["colors"][new[0]]
@@ -269,10 +266,9 @@ def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
269266
width=200,
270267
)
271268

272-
def enhance_cb( # noqa: ARG001 # skipcq: PYL-W0613
273-
attr: str,
274-
old: str,
275-
new: str) -> None:
269+
def enhance_cb( # skipcq: PYL-W0613
270+
attr: str, old: str, new: str
271+
) -> None:
276272
"""Enhance slider callback."""
277273
UI["s"].put(
278274
f"http://{host2}:5000/tileserver/enhance",

0 commit comments

Comments
 (0)