Skip to content

Commit 84fdd2f

Browse files
committed
🐛 Fix TID252 Prefer absolute imports over relative imports
1 parent 9204604 commit 84fdd2f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/engines/test_semantic_segmentor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ def test_save_annotation_store(
118118

119119
def test_hovernet_dat() -> None:
120120
"""Test for comparing annotation store saving."""
121-
from pathlib import Path
122-
123121
from tiatoolbox.utils.misc import store_from_dat
124122

125123
path_to_file = Path.cwd().parent.parent / "output" / "0.dat"

tiatoolbox/models/engine/semantic_segmentor_new.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import zarr
1010
from typing_extensions import Unpack
1111

12-
from ...utils.misc import dict_to_store_semantic_segmentor, dict_to_zarr
12+
from tiatoolbox.utils.misc import dict_to_store_semantic_segmentor, dict_to_zarr
13+
1314
from .patch_predictor import PatchPredictor, PredictorRunParams
1415

1516
if TYPE_CHECKING: # pragma: no cover

0 commit comments

Comments
 (0)