Skip to content

Commit 4ad0afd

Browse files
committed
convert bins array to list to make mypy happy
1 parent 7bedbd5 commit 4ad0afd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/napari_matplotlib/histogram.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ def draw(self) -> None:
8282
for i, c in enumerate("rgb"):
8383
self.axes.hist(
8484
data[..., i].ravel(),
85-
bins=bins,
85+
bins=bins.tolist(),
8686
label=c,
8787
histtype="step",
8888
color=_COLORS[c],
8989
)
9090
else:
91-
self.axes.hist(data.ravel(), bins=bins, label=layer.name)
91+
self.axes.hist(data.ravel(), bins=bins.tolist(), label=layer.name)
9292

9393
self._contrast_lines = [
9494
self.axes.axvline(lim, color="white")

0 commit comments

Comments
 (0)