def handle_endtag(self, tag):
        """Called at the end of every HTML tag."""

        # We only care about the opening tag for headings.
        if (["h%d" % x for x in range(1, 7)]) not in tag:
            return

        self.is_header_tag = False
dataset/ETHPy150Open mkdocs/mkdocs/mkdocs/search.py/ContentParser.handle_endtag/swapped operands of `not in`