Skip to content

Commit 6ac919b

Browse files
clewis7FlynnOConnell
authored andcommitted
lint (#831)
1 parent e18d327 commit 6ac919b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fastplotlib/widgets/image_widget/_widget.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def current_index(self, index: dict[str, int]):
199199
return
200200

201201
try:
202-
self._reentrant_block = True # block re-execution until current_index has *fully* completed execution
202+
self._reentrant_block = True # block re-execution until current_index has *fully* completed execution
203203
if not set(index.keys()).issubset(set(self._current_index.keys())):
204204
raise KeyError(
205205
f"All dimension keys for setting `current_index` must be present in the widget sliders. "
@@ -210,7 +210,9 @@ def current_index(self, index: dict[str, int]):
210210
if not isinstance(val, int):
211211
raise TypeError("Indices for all dimensions must be int")
212212
if val < 0:
213-
raise IndexError("negative indexing is not supported for ImageWidget")
213+
raise IndexError(
214+
"negative indexing is not supported for ImageWidget"
215+
)
214216
if val > self._dims_max_bounds[k]:
215217
raise IndexError(
216218
f"index {val} is out of bounds for dimension '{k}' "

0 commit comments

Comments
 (0)