Skip to content

Navigation Menu

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 e13454a

Browse filesBrowse files
[pre-commit.ci] pre-commit autoupdate (#303)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.11.6](astral-sh/ruff-pre-commit@v0.11.4...v0.11.6) * Remove type:ignore flags for bins in histogram.py. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sam Cunliffe <sam.cunliffe@gmail.com>
1 parent b81aa2d commit e13454a
Copy full SHA for e13454a

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

‎.pre-commit-config.yaml

Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424

2525
- repo: https://github.com/astral-sh/ruff-pre-commit
2626
# Ruff version.
27-
rev: 'v0.11.4'
27+
rev: 'v0.11.6'
2828
hooks:
2929
- id: ruff
3030

‎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.