Skip to content

Commit 5f1129e

Browse files
committed
Ignore typing for now.
1 parent 72a4a7f commit 5f1129e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/napari_matplotlib/histogram.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def _get_bins(
2929
data: npt.NDArray[Any],
3030
num_bins: int = 100,
31-
) -> npt.NDArray[Any]:
31+
) -> npt.NDArray[np.floating]:
3232
"""Create evenly spaced bins with a given interval.
3333
3434
Parameters
@@ -161,13 +161,13 @@ def draw(self) -> None:
161161
for i, c in enumerate("rgb"):
162162
self.axes.hist(
163163
data[..., i].ravel(),
164-
bins=bins.tolist(),
164+
bins=bins.tolist(), # type: ignore[arg-type]
165165
label=c,
166166
histtype="step",
167167
color=_COLORS[c],
168168
)
169169
else:
170-
self.axes.hist(data.ravel(), bins=bins.tolist(), label=layer.name)
170+
self.axes.hist(data.ravel(), bins=bins.tolist(), label=layer.name) # type: ignore[arg-type]
171171

172172
self._contrast_lines = [
173173
self.axes.axvline(lim, color="white")
@@ -297,7 +297,7 @@ def draw(self) -> None:
297297

298298
bins = _get_bins(data)
299299

300-
_, bins, patches = self.axes.hist(data, bins=bins.tolist())
300+
_, bins, patches = self.axes.hist(data, bins=bins.tolist()) # type: ignore[arg-type]
301301
patches = cast(BarContainer, patches)
302302

303303
# recolor the histogram plot

0 commit comments

Comments
 (0)