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.
ruff
1 parent cc2f801 commit 31fe38aCopy full SHA for 31fe38a
tiatoolbox/models/dataset/dataset_abc.py
@@ -4,7 +4,7 @@
4
5
from abc import ABC, abstractmethod
6
from pathlib import Path
7
-from typing import TYPE_CHECKING, Union
+from typing import TYPE_CHECKING
8
9
if TYPE_CHECKING: # pragma: no cover
10
from collections.abc import Callable, Iterable
@@ -20,7 +20,7 @@
20
21
from tiatoolbox.utils import imread
22
23
-input_type = Union[list[str | Path | np.ndarray], np.ndarray]
+input_type = list[str | Path | np.ndarray] | np.ndarray
24
25
26
class PatchDatasetABC(ABC, torch.utils.data.Dataset):
0 commit comments