Skip to content

Commit cd7a58d

Browse files
authored
update aiosonic from 0.15.1 to 0.24.0 (#2677)
* udpate aiosonic from 0.15.1 to 0.24.0 * Trigger Tests CI
1 parent d6a4fb7 commit cd7a58d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.generator/src/generator/templates/api_client.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,10 @@ class AsyncApiClient(ApiClient):
525525
async def __aenter__(self) -> Self:
526526
return self
527527

528-
async def __aexit__(self, _exc_type, exc, _tb):
528+
async def __aexit__(self, exc_type, exc, tb):
529529
if exc:
530530
raise exc
531-
await self.rest_client._client.shutdown()
531+
await self.rest_client._client.__aexit__(exc_type, exc, tb)
532532

533533
def close(self):
534534
self.rest_client.close()

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ setup_requires =
5050
apm =
5151
ddtrace>=1.15.0
5252
async =
53-
aiosonic==0.15.1
53+
aiosonic==0.24.0
5454
zstandard =
5555
zstandard
5656
tests =
57-
aiosonic==0.15.1
57+
aiosonic==0.24.0
5858
glom
5959
jinja2
6060
pytest<8.0.0

src/datadog_api_client/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,10 @@ def _build_rest_client(self):
524524
async def __aenter__(self) -> Self:
525525
return self
526526

527-
async def __aexit__(self, _exc_type, exc, _tb):
527+
async def __aexit__(self, exc_type, exc, tb):
528528
if exc:
529529
raise exc
530-
await self.rest_client._client.shutdown()
530+
await self.rest_client._client.__aexit__(exc_type, exc, tb)
531531

532532
def close(self):
533533
self.rest_client.close()

0 commit comments

Comments
 (0)