From fd35fa08715ec6ac1fa5df377d923ce6584d360f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 21 Mar 2026 10:45:23 +0100 Subject: [PATCH] lib.Distro: Add missing async Distro's sudo() and run() wrappers are not flagged async. It still works, because throughout jw-pkg all callers expect a coroutine return value, but flagging them as async makes the return value obvious. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/Distro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python/jw/pkg/lib/Distro.py b/src/python/jw/pkg/lib/Distro.py index 53787d39..e2987ea2 100644 --- a/src/python/jw/pkg/lib/Distro.py +++ b/src/python/jw/pkg/lib/Distro.py @@ -56,11 +56,11 @@ class Distro(abc.ABC): def ctx(self) -> ExecContext: return self.__exec_context - def run(self, *args, **kwargs) -> Result: - return self.__exec_context.run(*args, **kwargs) + async def run(self, *args, **kwargs) -> Result: + return await self.__exec_context.run(*args, **kwargs) - def sudo(self, *args, **kwargs) -> Result: - return self.__exec_context.sudo(*args, **kwargs) + async def sudo(self, *args, **kwargs) -> Result: + return await self.__exec_context.sudo(*args, **kwargs) @property def interactive(self) -> bool: