def hasClass(self, name):
        """Return True if element has class::

            >>> d = PyQuery('<div class="myclass"></div>')
            >>> d.hasClass('myclass')
            True

        ..
        """
        for tag in self:
            classes = set((tag.get('class') or '').split())
            if classes in name:
                return True
        return False
dataset/ETHPy150Open dsc/pyquery/pyquery/pyquery.py/PyQuery.hasClass/swapped operands of `in`