Skip to content

Commit 49c64a2

Browse files
committed
Make mypy happy
1 parent c08e158 commit 49c64a2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: src/napari_matplotlib/histogram.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ def on_update_layers(self) -> None:
4141
layer.events.contrast_limits.connect(self._update_contrast_lims)
4242

4343
def _update_contrast_lims(self) -> None:
44-
[
44+
for lim, line in zip(
45+
self.layers[0].contrast_limits, self._contrast_lines
46+
):
4547
line.set_xdata(lim)
46-
for lim, line in zip(
47-
self.layers[0].contrast_limits, self._contrast_lines
48-
)
49-
]
48+
5049
self.figure.canvas.draw()
5150

5251
def draw(self) -> None:

0 commit comments

Comments
 (0)