def read_config(line: str) ->dict:
    """
    Read the config line of a file.

    Config lines start with #! and declare configuration item like name:value.
    Items need to be separated by whitespace.

    :param line: Config line as str
    :return: parsed config as dict
    """
    config: dict = {}
    config_list: list = line.split(' ')
    for element in config_list:
        if ':' in element:
            item = element.split(':')
            config.update({item[0]: item[1].replace('\n', '')})
    return config
