Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ac919b

Browse filesBrowse files
clewis7FlynnOConnell
authored andcommitted
lint (#831)
1 parent e18d327 commit 6ac919b
Copy full SHA for 6ac919b

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎fastplotlib/widgets/image_widget/_widget.py

Copy file name to clipboardExpand all lines: fastplotlib/widgets/image_widget/_widget.py
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.