From f5d84f3bd138c8fe985671119a0082e121124100 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Tue, 25 Jul 2023 03:00:54 -0700 Subject: [PATCH] Clean up aexit def --- salt/channel/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/channel/client.py b/salt/channel/client.py index 8d029470686..0c8a425a0ac 100644 --- a/salt/channel/client.py +++ b/salt/channel/client.py @@ -371,7 +371,7 @@ class AsyncReqChannel: await self.transport.connect() return self - async def __aexit__(self, exc_type, exc, tb): + async def __aexit__(self, *_): self.close() @@ -628,7 +628,7 @@ class AsyncPubChannel: async def __aenter__(self): return self - async def __aexit__(self, exc_type, exc, tb): + async def __aexit__(self, *_): await self.close()