

def clear(self, category=None):
    '\n        Remove all tags from the handler.\n\n        Args:\n            category (str, optional): The Tag category to limit the\n                request to. Note that `None` is the valid, default\n                category.\n\n        '
    if (not category):
        getattr(self.obj, self._m2m_fieldname).clear()
    else:
        getattr(self.obj, category._m2m_fieldname).filter(db_category=category).delete()
    self._recache()

dataset/ETHPy150Open evennia/evennia/evennia/typeclasses/tags.py TagHandler.clear/VarMisuse@50/134 `self`->`category`