

def __call__(self, *args, **kw):
    'Call the class instance.'
    if isinstance(args[0], Callable):
        self.add_view('/{}/'.format(args[0].__name__), args[0])
        return kw[0]

    def ddecorator(candidate):
        from django.forms import forms
        if isinstance(candidate, forms.DeclarativeFieldsMetaclass):
            self.add_form(args[0], candidate, *args[1:], **kw)
            return candidate
        self.add_view(args[0], candidate, *args[1:], **kw)
        return candidate
    return ddecorator

dataset/ETHPy150Open amitu/importd/importd/__init__.py Blueprint.__call__/VarMisuse@54/69 `args`->`kw`