""" Converter for converting ChannelsConfigFile from version "Versions weren't a thing back then" to version 1.0 """ from typing import Dict, Tuple def convert(config: Dict) -> Tuple[Dict, str]: assert "__version__" not in config # This first simple converter only adds version information to the config # this poses the basis for version conversion config["__version__"] = "1.0" return config, "1.0"