Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from typing import List, Optional |
||
2 | |||
3 | from pystratum_backend.RoutineLoaderWorker import RoutineLoaderWorker |
||
4 | from pystratum_backend.StratumStyle import StratumStyle |
||
5 | |||
6 | |||
7 | class VoidRoutineLoaderWorker(RoutineLoaderWorker): |
||
8 | """ |
||
9 | Routine loader worker that does nothing. |
||
10 | """ |
||
11 | |||
12 | # ------------------------------------------------------------------------------------------------------------------ |
||
13 | def __init__(self, io: StratumStyle): |
||
14 | """ |
||
15 | Object constructor. |
||
16 | |||
17 | :param io: The Output decorator. |
||
18 | """ |
||
19 | self._io: StratumStyle = io |
||
20 | |||
21 | # ------------------------------------------------------------------------------------------------------------------ |
||
22 | def execute(self, file_names: Optional[List[str]] = None) -> int: |
||
23 | """ |
||
24 | Does the actual execution of the routine loader command for the backend. Returns 0 on success. Otherwise |
||
25 | returns nonzero. |
||
26 | |||
27 | :param list[str]|None file_names: The sources that must be loaded. If none all sources (if required) will |
||
28 | loaded. |
||
29 | |||
30 | :rtype: int |
||
31 | """ |
||
32 | self._io.title('Loader') |
||
33 | |||
34 | return 0 |
||
35 | |||
37 |