action_utils: Fix issue with type checking a generator

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2026-02-24 10:58:00 -08:00
parent 365c1c3484
commit bc4730c33c
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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: