Skip to content

Commit c21d4b6

Browse files
committed
Type data return types
1 parent 9598eeb commit c21d4b6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/napari_matplotlib/tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import os
22

3+
from typing import Dict, Any
34
import numpy as np
45
import pytest
56
from skimage import data
67

8+
DataMeta = Dict[np.ndarray, Dict[str, Any]]
79

810
@pytest.fixture(
911
params=[
@@ -12,17 +14,17 @@
1214
((100, 100, 3), {"rgb": True}),
1315
]
1416
)
15-
def image_data(request):
17+
def image_data(request) -> DataMeta:
1618
return np.ones(request.param[0]), request.param[1]
1719

1820

1921
@pytest.fixture
20-
def astronaut_data():
22+
def astronaut_data() -> DataMeta:
2123
return data.astronaut(), {"rgb": True}
2224

2325

2426
@pytest.fixture
25-
def brain_data():
27+
def brain_data() -> DataMeta:
2628
return data.brain(), {"rgb": False}
2729

2830

0 commit comments

Comments
 (0)