We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93b727d commit 3f63125Copy full SHA for 3f63125
1 file changed
tests/test_collect_command.py
@@ -5,18 +5,21 @@
5
import textwrap
6
from dataclasses import dataclass
7
from pathlib import Path
8
+from typing import TYPE_CHECKING
9
10
import pytest
11
12
from _pytask.collect_command import _find_common_ancestor_of_all_nodes
13
from _pytask.collect_command import _print_collected_tasks
-from _pytask.node_protocols import PTaskWithPath
14
from pytask import ExitCode
15
from pytask import PathNode
16
from pytask import Task
17
from pytask import cli
18
from tests.conftest import enter_directory
19
20
+if TYPE_CHECKING:
21
+ from _pytask.node_protocols import PTaskWithPath
22
+
23
24
def test_collect_task(runner, tmp_path):
25
source = """
0 commit comments