Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exposing TransportApiResponse #161

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading