File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ unsafe-fixes = true
9393
9494[tool .ruff .lint ]
9595extend-ignore = [
96- " TCH" , # ignore non-guarded type imports.
9796 # Others.
9897 " ANN101" , # type annotating self
9998 " ANN102" , # type annotating cls
Original file line number Diff line number Diff line change 66import sys
77import time
88import warnings
9- from concurrent .futures import Future
109from functools import partial
11- from pathlib import Path
12- from types import ModuleType
13- from types import TracebackType
10+ from typing import TYPE_CHECKING
1411from typing import Any
1512from typing import Callable
1613
3532from pytask .tree_util import tree_leaves
3633from pytask .tree_util import tree_map
3734from pytask .tree_util import tree_structure
38- from rich .console import ConsoleOptions
3935from rich .traceback import Traceback
4036
4137from pytask_parallel .backends import PARALLEL_BACKENDS
4238from pytask_parallel .backends import ParallelBackend
4339
40+ if TYPE_CHECKING :
41+ from concurrent .futures import Future
42+ from pathlib import Path
43+ from types import ModuleType
44+ from types import TracebackType
45+
46+ from rich .console import ConsoleOptions
47+
4448
4549@hookimpl
4650def pytask_post_parse (config : dict [str , Any ]) -> None :
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from pluggy import PluginManager
5+ from typing import TYPE_CHECKING
6+
67from pytask import hookimpl
78
89from pytask_parallel import build
910from pytask_parallel import config
1011from pytask_parallel import execute
1112from pytask_parallel import logging
1213
14+ if TYPE_CHECKING :
15+ from pluggy import PluginManager
16+
1317
1418@hookimpl
1519def pytask_add_hooks (pm : PluginManager ) -> None :
You can’t perform that action at this time.
0 commit comments