pystratum_backend.RoutineLoaderWorker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A RoutineLoaderWorker.execute() 0 8 1
1
from abc import ABC
2
from typing import List, Optional
3
4
5
class RoutineLoaderWorker(ABC):
6
    """
7
    Interface for classes that implement the actual execution of the routine loader command.
8
    """
9
10
    # ------------------------------------------------------------------------------------------------------------------
11
    def execute(self, file_names: Optional[List[str]] = None) -> int:
12
        """
13
        Does the actual execution of the routine loader command for the backend. Returns 0 on success. Otherwise,
14
        returns nonzero.
15
16
        :param file_names: The sources that must be loaded. If None all sources (if required) will be loaded.
17
        """
18
        pass
19
20
# ----------------------------------------------------------------------------------------------------------------------
21