Skip to content

Commit d03a62a

Browse files
fix union type
1 parent 324e0d2 commit d03a62a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ilastik_tasks/ilastik_pixel_classification_segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import json
2424
import logging
2525
import os
26-
from typing import Any
26+
from typing import Any, Union
2727

2828
import anndata as ad
2929
import dask.array as da
@@ -83,7 +83,7 @@ def segment_ROI(
8383
foreground_class: int = 0,
8484
threshold: float = 0.5,
8585
min_size: int = 15,
86-
label_dtype: np.dtype | None = None,
86+
label_dtype: Union[np.dtype, None] = None,
8787
relabeling: bool = True,
8888
) -> np.ndarray:
8989
"""Run the Ilastik model on a single ROI.

0 commit comments

Comments
 (0)