Skip to content

Commit

Permalink
Fix exposing TransportApiResponse (#161)
Browse files Browse the repository at this point in the history
* Fix exposing TransportApiResponse

* Remove forgotten mention of NodeApiResponse

(cherry picked from commit cbe7242)
  • Loading branch information
pquentin authored and github-actions[bot] committed May 28, 2024
1 parent b6895bb commit 49fbf6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions elastic_transport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
BaseAsyncNode,
BaseNode,
HttpxAsyncHttpNode,
NodeApiResponse,
RequestsHttpNode,
Urllib3HttpNode,
)
Expand All @@ -57,6 +56,7 @@
TextSerializer,
)
from ._transport import Transport as Transport
from ._transport import TransportApiResponse
from ._utils import fixup_module_metadata
from ._version import __version__ as __version__ # noqa

Expand All @@ -77,7 +77,6 @@
"JsonSerializer",
"ListApiResponse",
"NdjsonSerializer",
"NodeApiResponse",
"NodeConfig",
"NodePool",
"NodeSelector",
Expand All @@ -96,6 +95,7 @@
"TextSerializer",
"TlsError",
"Transport",
"TransportApiResponse",
"TransportError",
"TransportWarning",
"Urllib3HttpNode",
Expand Down
2 changes: 1 addition & 1 deletion elastic_transport/_node/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def perform_request(
:class:`elastic_transport.ConnectionError`,
:class:`elastic_transport.ConnectionTimeout`,
:class:`elastic_transport.TlsError`
:rtype: Tuple[NodeApiResponse, bytes]
:rtype: Tuple[ApiResponseMeta, bytes]
:returns: Metadata about the request+response and the raw
decompressed bytes from the HTTP response body.
"""
Expand Down

0 comments on commit 49fbf6b

Please sign in to comment.