|
10 | 10 | if TYPE_CHECKING:
|
11 | 11 | from ert.substitutions import Substitutions
|
12 | 12 |
|
13 |
| - from .workflow_job import WorkflowJob |
| 13 | + from .workflow_job import _WorkflowJob |
14 | 14 |
|
15 | 15 |
|
16 | 16 | @dataclass
|
17 | 17 | class Workflow:
|
18 | 18 | src_file: str
|
19 |
| - cmd_list: list[tuple[WorkflowJob, Any]] |
| 19 | + cmd_list: list[tuple[_WorkflowJob, Any]] |
20 | 20 |
|
21 | 21 | def __len__(self) -> int:
|
22 | 22 | return len(self.cmd_list)
|
23 | 23 |
|
24 |
| - def __getitem__(self, index: int) -> tuple[WorkflowJob, Any]: |
| 24 | + def __getitem__(self, index: int) -> tuple[_WorkflowJob, Any]: |
25 | 25 | return self.cmd_list[index]
|
26 | 26 |
|
27 |
| - def __iter__(self) -> Iterator[tuple[WorkflowJob, Any]]: |
| 27 | + def __iter__(self) -> Iterator[tuple[_WorkflowJob, Any]]: |
28 | 28 | return iter(self.cmd_list)
|
29 | 29 |
|
30 | 30 | @classmethod
|
31 | 31 | def _parse_command_list(
|
32 | 32 | cls,
|
33 | 33 | src_file: str,
|
34 | 34 | context: list[tuple[str, str]],
|
35 |
| - job_dict: dict[str, WorkflowJob], |
36 |
| - ) -> list[tuple[WorkflowJob, Any]]: |
| 35 | + job_dict: dict[str, _WorkflowJob], |
| 36 | + ) -> list[tuple[_WorkflowJob, Any]]: |
37 | 37 | schema = init_workflow_schema()
|
38 | 38 | config_dict = parse(src_file, schema, pre_defines=context)
|
39 | 39 |
|
@@ -88,7 +88,7 @@ def from_file(
|
88 | 88 | cls,
|
89 | 89 | src_file: str,
|
90 | 90 | context: Substitutions | None,
|
91 |
| - job_dict: dict[str, WorkflowJob], |
| 91 | + job_dict: dict[str, _WorkflowJob], |
92 | 92 | ) -> Workflow:
|
93 | 93 | cmd_list = cls._parse_command_list(
|
94 | 94 | src_file=src_file,
|
|
0 commit comments