Skip to content

Commit e3e5d10

Browse files
Update type annotations, pooch always returns str
1 parent bb476e4 commit e3e5d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

micro_sam/sample_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def sample_data_wholeslide():
100100
return [(data, add_image_kwargs)]
101101

102102

103-
def fetch_livecell_example_data(save_directory: Union[str, os.PathLike]) -> Union[str, os.PathLike]:
103+
def fetch_livecell_example_data(save_directory: Union[str, os.PathLike]) -> str:
104104
"""Download the sample data for the 2d annotator.
105105
106106
This downloads a single image from the LiveCELL dataset.
@@ -176,7 +176,7 @@ def sample_data_hela_2d():
176176
return [(data, add_image_kwargs)]
177177

178178

179-
def fetch_3d_example_data(save_directory: Union[str, os.PathLike]) -> Union[str, os.PathLike]:
179+
def fetch_3d_example_data(save_directory: Union[str, os.PathLike]) -> str:
180180
"""Download the sample data for the 3d annotator.
181181
182182
This downloads the Lucchi++ datasets from https://casser.io/connectomics/.
@@ -222,7 +222,7 @@ def sample_data_3d():
222222
return [(data, add_image_kwargs)]
223223

224224

225-
def fetch_tracking_example_data(save_directory: Union[str, os.PathLike]) -> Union[str, os.PathLike]:
225+
def fetch_tracking_example_data(save_directory: Union[str, os.PathLike]) -> str:
226226
"""Download the sample data for the tracking annotator.
227227
228228
This data is the cell tracking challenge dataset DIC-C2DH-HeLa.

0 commit comments

Comments
 (0)