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 d4cd7d3

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

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎src/napari_matplotlib/histogram.py

Copy file name to clipboardExpand all lines: src/napari_matplotlib/histogram.py
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.