Skip to content

Commit d4cd7d3

Browse files
committed
Remove type:ignore flags for bins in histogram.py.
1 parent c6a92fa commit d4cd7d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/napari_matplotlib/histogram.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -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(), # type: ignore[arg-type]
164+
bins=bins.tolist(),
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) # type: ignore[arg-type]
170+
self.axes.hist(data.ravel(), bins=bins.tolist(), label=layer.name)
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()) # type: ignore[arg-type]
300+
_, bins, patches = self.axes.hist(data, bins=bins.tolist())
301301
patches = cast(BarContainer, patches)
302302

303303
# recolor the histogram plot

0 commit comments

Comments
 (0)