

def __init__(self, user, *args, **kwargs):
    names = kwargs.pop('names')
    obj = kwargs.pop('obj')
    super(SetForm, self).__init__(*args, **kwargs)
    for (i, name) in enumerate(names):
        self.fields[names[i]] = forms.BooleanField(label=_(name[i].title().replace('_', ' ')), required=False)
        self.fields['obj'] = forms.CharField(initial=str(obj), widget=forms.widgets.HiddenInput())

dataset/ETHPy150Open treeio/treeio/treeio/reports/forms.py SetForm.__init__/VarMisuse@84/94 `names`->`name`