Skip to content

Commit 4f8aa6d

Browse files
committed
Pre-commit and some docstring formatting.
1 parent 499c0a7 commit 4f8aa6d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/napari_matplotlib/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ def apply_napari_colorscheme(self, ax: Axes) -> None:
9595
ax.tick_params(axis="y", colors=tx)
9696

9797
def _on_theme_change(self) -> None:
98-
"""
99-
Update the MPL toolbar and axis styling when the `napari.Viewer.theme` is changed.
98+
"""Update MPL toolbar and axis styling when `napari.Viewer.theme` is changed.
10099
101-
Note: At the moment we only recognise the default 'light' and 'dark' napari themes.
100+
Note:
101+
At the moment we only handle the default 'light' and 'dark' napari themes.
102102
"""
103103
self._replace_toolbar_icons()
104104
if self.figure.gca():

src/napari_matplotlib/tests/test_theme.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from napari_matplotlib.base import NapariMPLWidget
34

45

0 commit comments

Comments
 (0)