Skip to content

Commit 573cae1

Browse files
committed
Clarify asyncio/trio support
1 parent 17ef8fa commit 573cae1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

elastic_transport/_node/_http_aiohttp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ class RequestKwarg(TypedDict, total=False):
7272

7373

7474
class AiohttpHttpNode(BaseAsyncNode):
75-
"""Default asynchronous node class using the ``aiohttp`` library via HTTP"""
75+
"""Default asynchronous node class using the ``aiohttp`` library via HTTP.
76+
77+
Supports asyncio.
78+
"""
7679

7780
_CLIENT_META_HTTP_CLIENT = ("ai", _AIOHTTP_META_VERSION)
7881

elastic_transport/_node/_http_httpx.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646

4747

4848
class HttpxAsyncHttpNode(BaseAsyncNode):
49+
"""
50+
Async HTTP node using httpx. Supports both Trio and asyncio.
51+
"""
52+
4953
_CLIENT_META_HTTP_CLIENT = ("hx", _HTTPX_META_VERSION)
5054

5155
def __init__(self, config: NodeConfig):

0 commit comments

Comments
 (0)