From e4f4b76ddbc2c37b14aac69a043cc878947caa49 Mon Sep 17 00:00:00 2001 From: Dylan Baker <dylan@pnwbakers.com> Date: Tue, 27 Jul 2021 14:31:01 -0700 Subject: [PATCH] scripts/meson_exe: narrow type annotation Not just a `dict`, but a `dict[str, str]` --- mesonbuild/scripts/meson_exe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py index cd3534cb0..dc89876be 100644 --- a/mesonbuild/scripts/meson_exe.py +++ b/mesonbuild/scripts/meson_exe.py @@ -32,7 +32,7 @@ def buildparser() -> argparse.ArgumentParser: parser.add_argument('--feed') return parser -def run_exe(exe: ExecutableSerialisation, extra_env: T.Optional[dict] = None) -> int: +def run_exe(exe: ExecutableSerialisation, extra_env: T.Optional[T.Dict[str, str]] = None) -> int: if exe.exe_runner: if not exe.exe_runner.found(): raise AssertionError('BUG: Can\'t run cross-compiled exe {!r} with not-found '