from pathlib import PurePath from typing import Callable, Type class BaseAlgorithm: compress: Callable name: str enabled: bool path: PurePath level: int Algorithm = Type[BaseAlgorithm]