]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
relax accepted types for run_work_space command
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Sat, 26 Mar 2022 15:04:16 +0000 (16:04 +0100)
committerJoerg Behrmann <behrmann@physik.fu-berlin.de>
Sat, 26 Mar 2022 15:04:16 +0000 (16:04 +0100)
mkosi/backend.py

index 57b37a5887d6ee2ecabc563b1912eb8ae99a9628..5cbd8e1671f8703279a3b37a736ac1181e54b4a6 100644 (file)
@@ -27,6 +27,7 @@ from typing import (
     Dict,
     Iterator,
     List,
+    Mapping,
     NoReturn,
     Optional,
     Sequence,
@@ -606,7 +607,7 @@ def run_workspace_command(
     root: Path,
     cmd: Sequence[PathString],
     network: bool = False,
-    env: Optional[Dict[str, str]] = None,
+    env: Optional[Mapping[str, str]] = None,
     nspawn_params: Optional[List[str]] = None,
     capture_stdout: bool = False,
 ) -> Optional[str]: