

def _assert_no_unexpected_kwargs(self, expected_args, kwargs):
    if self.kw_wildcard_name:
        return
    unexpected_kwargs = (set(kwargs) - set(expected_args))
    if unexpected_kwargs:
        raise TypeError('{} got unexpected kwarg(s): {}'.format(self.name, sorted(unexpected_kwargs)))

dataset/ETHPy150Open IDSIA/sacred/sacred/config/signature.py Signature._assert_no_unexpected_kwargs/original