fix context managers

This commit is contained in:
HgO 2022-07-08 22:39:40 +02:00
parent d8ab7c1d9b
commit ddf22f3694
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class AlertmanagerClient(AsyncContextManager):
self.session = aiohttp.ClientSession()
async def __aenter__(self) -> AlertmanagerClient:
return await self
return self
async def __aexit__(self, *args: Any, **kwargs: Any) -> None:
await super().__aexit__(*args, **kwargs)

View file

@ -66,7 +66,7 @@ class Webhook(AsyncContextManager):
self.socket = config.socket
async def __aenter__(self) -> Webhook:
return await self
return self
async def __aexit__(self, *args: Any, **kwargs: Any) -> None:
await super().__aexit__(*args, **kwargs)