Skip to content

Commit 219ea3c

Browse files
committed
bugfix
1 parent dc1dbd2 commit 219ea3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastplotlib/widgets/image_widget/_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def spatial_func(self) -> Callable[[ArrayLike], ArrayLike] | None:
336336

337337
@spatial_func.setter
338338
def spatial_func(self, func: Callable[[ArrayLike], ArrayLike] | None):
339-
if not callable(func) or func is not None:
339+
if not (callable(func) or func is not None):
340340
raise TypeError(
341341
f"`spatial_func` must be a callable or `None`, you have passed: {func}"
342342
)

0 commit comments

Comments
 (0)