def unknown_visit(self, node): if not self._found and isinstance(node, nodes.container) and \ 'classes' in node and isinstance(node['classes'], list): self._found = 'sphinx-tabs' in node['classes']