Skip to content

Commit 82a9876

Browse files
committed
🐛 Fix ruff check TC003 Move standard library import collections.abc.Callable into a type-checking block
1 parent 5de542f commit 82a9876

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/engines/test_semantic_segmentor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import json
66
import sqlite3
77
import tempfile
8-
from collections.abc import Callable
98
from pathlib import Path
9+
from typing import TYPE_CHECKING
1010
from unittest import mock
1111

1212
import dask.array as da
@@ -27,6 +27,9 @@
2727
from tiatoolbox.utils.misc import imread
2828
from tiatoolbox.wsicore import WSIReader
2929

30+
if TYPE_CHECKING:
31+
from collections.abc import Callable
32+
3033
device = "cuda" if toolbox_env.has_gpu() else "cpu"
3134

3235

0 commit comments

Comments
 (0)