def __init__(self, validators, msg=None, **kwargs): self.validators = validators self.msg = msg self._schemas = [Schema(val, **kwargs) for val in validators]
def __init__(self, validators, **kwargs): self.validators = validators self.msg = kwargs.pop('msg', None) self._schemas = [Schema(val, **kwargs) for val in validators]