def set_detail_level(self, detail_level=None, **kwargs):
        """Add a DetailLevel instance to this Avalara document"""
        if kwargs:
            detail_level = DetailLevel(**kwargs)
        if isinstance(detail_level, DetailLevel):
            setattr(self, 'DetailLevel', detail_level)
        else:
            raise AvalaraTypeException(AvalaraException.CODE_BAD_DETAIL, (detail_level, DetailLevel) % '%r is not a %r')
dataset/ETHPy150Open activefrequency/pyavatax/pyavatax/base.py/Document.set_detail_level/swapped operands of `%`