<gh_stars>100-1000
"""
Description of what this config does
"""
import ast
from typing import Dict

from dffml.util.entrypoint import entrypoint
from dffml.util.cli.arg import Arg
from dffml.base import BaseConfig
from dffml.configloader.configloader import (
    BaseConfigLoaderContext,
    BaseConfigLoader,
)


class MiscConfigLoaderContext(BaseConfigLoaderContext):
    async def loadb(self, resource: bytes) -> Dict:
        return ast.literal_eval(resource.decode())

    async def dumpb(self, resource: Dict) -> bytes:
        return repr(resource).encode()


@entrypoint("misc")
class MiscConfigLoader(BaseConfigLoader):
    CONTEXT = MiscConfigLoaderContext

    @classmethod
    def args(cls, args, *above) -> Dict[str, Arg]:
        return args

    @classmethod
    def config(cls, config, *above) -> BaseConfig:
        return BaseConfig()

"""
Description of what this config does
"""
import ast
from typing import Dict

from dffml.util.entrypoint import entrypoint
from dffml.util.cli.arg import Arg
from dffml.base import BaseConfig
from dffml.configloader.configloader import (
    BaseConfigLoaderContext,
    BaseConfigLoader,
)


class MiscConfigLoaderContext(BaseConfigLoaderContext):
    async def loadb(self, resource: bytes) -> Dict:
        return ast.literal_eval(resource.decode())

    async def dumpb(self, resource: Dict) -> bytes:
        return repr(resource).encode()


@entrypoint("misc")
class MiscConfigLoader(BaseConfigLoader):
    CONTEXT = MiscConfigLoaderContext

    @classmethod
    def args(cls, args, *above) -> Dict[str, Arg]:
        return args

    @classmethod
    def config(cls, config, *above) -> BaseConfig:
        return BaseConfig()
Description of what this config does