Skip to content

Commit 4cdacc2

Browse files
Expose TransportApiResponse (#160)
1 parent f42ec04 commit 4cdacc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

elastic_transport/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
BaseAsyncNode,
3838
BaseNode,
3939
HttpxAsyncHttpNode,
40+
NodeApiResponse,
4041
RequestsHttpNode,
4142
Urllib3HttpNode,
4243
)
@@ -76,6 +77,7 @@
7677
"JsonSerializer",
7778
"ListApiResponse",
7879
"NdjsonSerializer",
80+
"NodeApiResponse",
7981
"NodeConfig",
8082
"NodePool",
8183
"NodeSelector",

elastic_transport/_node/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def perform_request(
191191
:class:`elastic_transport.ConnectionError`,
192192
:class:`elastic_transport.ConnectionTimeout`,
193193
:class:`elastic_transport.TlsError`
194-
:rtype: Tuple[ApiResponseMeta, bytes]
194+
:rtype: Tuple[NodeApiResponse, bytes]
195195
:returns: Metadata about the request+response and the raw
196196
decompressed bytes from the HTTP response body.
197197
"""

0 commit comments

Comments
 (0)