Skip to content

Commit 9f388bb

Browse files
committed
Fix array typing
1 parent 015d23c commit 9f388bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/napari_matplotlib/tests/helpers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from io import BytesIO
22

33
import numpy as np
4+
import numpy.typing as npt
45
import pytest
56
from matplotlib.figure import Figure
67

78

8-
def fig_to_array(fig: Figure) -> np.ndarray:
9+
def fig_to_array(fig: Figure) -> npt.NDArray[np.uint8]:
910
"""
1011
Convert a figure to an RGB array.
1112
"""

0 commit comments

Comments
 (0)