fix context managers
This commit is contained in:
parent
d8ab7c1d9b
commit
ddf22f3694
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue