@classmethod
def from_file(cls, filepath: str, **kwargs) ->'Config':
    """Reading a configuration from a file"""
    with open(filepath, 'r') as fp:
        cfg = cls._load(fp, **kwargs)
    setattr(cfg, 'filepath', filepath)
    return cfg
