We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 015d23c commit 9f388bbCopy full SHA for 9f388bb
src/napari_matplotlib/tests/helpers.py
@@ -1,11 +1,12 @@
1
from io import BytesIO
2
3
import numpy as np
4
+import numpy.typing as npt
5
import pytest
6
from matplotlib.figure import Figure
7
8
-def fig_to_array(fig: Figure) -> np.ndarray:
9
+def fig_to_array(fig: Figure) -> npt.NDArray[np.uint8]:
10
"""
11
Convert a figure to an RGB array.
12
0 commit comments