This commit is contained in:
Pawan Singh Kapkoti 2026-04-06 03:32:17 +01:00 committed by GitHub
commit 7971d6794e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,9 +117,15 @@ class BaseClient(contextlib.AbstractContextManager, contextlib.AbstractAsyncCont
**kwargs,
)
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self.close()
async def __aenter__(self):
return self
async def __aexit__(self, exc_type, exc_val, exc_tb):
await self.close()