Skip to content

Commit 31fe38a

Browse files
committed
🎨 Apply ruff fixes
1 parent cc2f801 commit 31fe38a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tiatoolbox/models/dataset/dataset_abc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from abc import ABC, abstractmethod
66
from pathlib import Path
7-
from typing import TYPE_CHECKING, Union
7+
from typing import TYPE_CHECKING
88

99
if TYPE_CHECKING: # pragma: no cover
1010
from collections.abc import Callable, Iterable
@@ -20,7 +20,7 @@
2020

2121
from tiatoolbox.utils import imread
2222

23-
input_type = Union[list[str | Path | np.ndarray], np.ndarray]
23+
input_type = list[str | Path | np.ndarray] | np.ndarray
2424

2525

2626
class PatchDatasetABC(ABC, torch.utils.data.Dataset):

0 commit comments

Comments
 (0)