From 641c4633ca2ba808cab19d6022bae179e101545f Mon Sep 17 00:00:00 2001 From: Ulysse Mavrocordatos Date: Thu, 3 Jul 2025 12:21:16 +0200 Subject: [PATCH 1/2] udpate aiosonic from 0.15.1 to 0.24.0 --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index b8bf4c1b98..0ec57b8d0b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,11 +50,11 @@ setup_requires = apm = ddtrace>=1.15.0 async = - aiosonic==0.15.1 + aiosonic==0.24.0 zstandard = zstandard tests = - aiosonic==0.15.1 + aiosonic==0.24.0 glom jinja2 pytest<8.0.0 From 8f9f1e4ea98285e75940d06badf206c9be188b30 Mon Sep 17 00:00:00 2001 From: Ulysse Mavrocordatos Date: Thu, 3 Jul 2025 16:38:49 +0200 Subject: [PATCH 2/2] Trigger Tests CI --- .generator/src/generator/templates/api_client.j2 | 4 ++-- src/datadog_api_client/api_client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.generator/src/generator/templates/api_client.j2 b/.generator/src/generator/templates/api_client.j2 index ae135ff697..77b7b93904 100644 --- a/.generator/src/generator/templates/api_client.j2 +++ b/.generator/src/generator/templates/api_client.j2 @@ -525,10 +525,10 @@ class AsyncApiClient(ApiClient): async def __aenter__(self) -> Self: return self - async def __aexit__(self, _exc_type, exc, _tb): + async def __aexit__(self, exc_type, exc, tb): if exc: raise exc - await self.rest_client._client.shutdown() + await self.rest_client._client.__aexit__(exc_type, exc, tb) def close(self): self.rest_client.close() diff --git a/src/datadog_api_client/api_client.py b/src/datadog_api_client/api_client.py index 4691d36c47..d9794ede9c 100644 --- a/src/datadog_api_client/api_client.py +++ b/src/datadog_api_client/api_client.py @@ -524,10 +524,10 @@ def _build_rest_client(self): async def __aenter__(self) -> Self: return self - async def __aexit__(self, _exc_type, exc, _tb): + async def __aexit__(self, exc_type, exc, tb): if exc: raise exc - await self.rest_client._client.shutdown() + await self.rest_client._client.__aexit__(exc_type, exc, tb) def close(self): self.rest_client.close()