

def get_validator(self, name, **kwargs):
    attr_name = ('%s_validator' % name)
    attr = getattr(self.meta, attr_name)
    if (attr is None):
        return attr
    if inspect.ismethod(attr):
        return six.get_unbound_function(kwargs)(**kwargs)
    else:
        return attr(**kwargs)

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.get_validator/VarMisuse@62/79 `attr`->`kwargs`