diff --git a/elastic_transport/__init__.py b/elastic_transport/__init__.py index 786bc0d..3797a68 100644 --- a/elastic_transport/__init__.py +++ b/elastic_transport/__init__.py @@ -37,6 +37,7 @@ BaseAsyncNode, BaseNode, HttpxAsyncHttpNode, + NodeApiResponse, RequestsHttpNode, Urllib3HttpNode, ) @@ -76,6 +77,7 @@ "JsonSerializer", "ListApiResponse", "NdjsonSerializer", + "NodeApiResponse", "NodeConfig", "NodePool", "NodeSelector", diff --git a/elastic_transport/_node/_base.py b/elastic_transport/_node/_base.py index e912e7a..a903992 100644 --- a/elastic_transport/_node/_base.py +++ b/elastic_transport/_node/_base.py @@ -191,7 +191,7 @@ def perform_request( :class:`elastic_transport.ConnectionError`, :class:`elastic_transport.ConnectionTimeout`, :class:`elastic_transport.TlsError` - :rtype: Tuple[ApiResponseMeta, bytes] + :rtype: Tuple[NodeApiResponse, bytes] :returns: Metadata about the request+response and the raw decompressed bytes from the HTTP response body. """