def _with_validator(*args, **kwargs): return self.with_validator( validators.create_validator(name, *args, **kwargs))
def _with_validator(*args, **kwargs): # pylint: disable=invalid-name return self.with_validator( validators.create_validator(attr, *args, **kwargs))