From 6c692a591f1665cd4d609161a9bf9ca7fe645fc4 Mon Sep 17 00:00:00 2001 From: Jess Garson Date: Thu, 28 Mar 2024 14:14:29 -0400 Subject: [PATCH 1/2] Making changes based on issue 145 --- elastic_transport/__init__.py | 3 +++ elastic_transport/_node/_base.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/elastic_transport/__init__.py b/elastic_transport/__init__.py index 786bc0d..30dea6c 100644 --- a/elastic_transport/__init__.py +++ b/elastic_transport/__init__.py @@ -37,8 +37,10 @@ BaseAsyncNode, BaseNode, HttpxAsyncHttpNode, + NodeApiResponse, RequestsHttpNode, Urllib3HttpNode, + ) from ._node_pool import NodePool, NodeSelector, RandomSelector, RoundRobinSelector from ._otel import OpenTelemetrySpan @@ -76,6 +78,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. """ From dc18414ea9e3d4a00d85f188fd4ac7a71087e494 Mon Sep 17 00:00:00 2001 From: Jess Garson Date: Thu, 28 Mar 2024 15:27:37 -0400 Subject: [PATCH 2/2] Removing extra space --- elastic_transport/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/elastic_transport/__init__.py b/elastic_transport/__init__.py index 30dea6c..3797a68 100644 --- a/elastic_transport/__init__.py +++ b/elastic_transport/__init__.py @@ -40,7 +40,6 @@ NodeApiResponse, RequestsHttpNode, Urllib3HttpNode, - ) from ._node_pool import NodePool, NodeSelector, RandomSelector, RoundRobinSelector from ._otel import OpenTelemetrySpan