File size: 370 Bytes
1f88cea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from abc import ABC, abstractmethod
from omegaconf import OmegaConf
class Task(ABC):
"""A task to be executed."""
@abstractmethod
def run(self, config: OmegaConf) -> None:
"""Run the task.
Parameters
----------
config : OmegaConf
The configuration for the task.
"""
raise NotImplementedError
|