def response_class(self, cls: Type[Response[_R]]) -> Self:
        """
        Override the default wrapper used for the response.
        """
        s = self._clone()
        s._response_class = cls
        return s

        Override the default wrapper used for the response.
        
elasticsearch/dsl/search_base.py