def write_file(config_dict: Dict[str, Any], config_file: IO[str]) -> None: config = configparser.ConfigParser() config.read_dict(config_dict) config.write(config_file, space_around_delimiters=False)