From bc4730c33c9360d764fca218ca90e67f8457584a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 24 Feb 2026 10:58:00 -0800 Subject: [PATCH] action_utils: Fix issue with type checking a generator Signed-off-by: Sunil Mohan Adapa --- plinth/action_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/action_utils.py b/plinth/action_utils.py index 20b18f46b..fca5bddcb 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -10,6 +10,7 @@ import shutil import subprocess import tempfile from contextlib import contextmanager +from typing import Generator import augeas @@ -841,7 +842,7 @@ def run(command, **kwargs): @contextmanager -def umask(mask) -> None: +def umask(mask) -> Generator: """Set the umask temporarily for a operation and then revert it.""" old_umask = os.umask(mask) try: