@classmethod
def from_file(cls, filename, _dict=dict, **kwargs):
    """ Return a new TOMLSettings from a TOML file.
            Arguments:
                filename  : File name to read.

            All open() and toml.load() exceptions are propagated.
        """
    settings = cls(filename=filename, _dict=_dict)
    settings.load(**kwargs)
    return settings
