aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-07-27 14:31:01 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-09-24 09:44:40 -0700
commite4f4b76ddbc2c37b14aac69a043cc878947caa49 (patch)
tree1791efb18866c81e649e57608928b809947696e2 /mesonbuild
parent0a5e96aafef80b809f46c431ce688b6c00fa236d (diff)
downloadmeson-e4f4b76ddbc2c37b14aac69a043cc878947caa49.zip
meson-e4f4b76ddbc2c37b14aac69a043cc878947caa49.tar.gz
meson-e4f4b76ddbc2c37b14aac69a043cc878947caa49.tar.bz2
scripts/meson_exe: narrow type annotation
Not just a `dict`, but a `dict[str, str]`
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/scripts/meson_exe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py
index cd3534c..dc89876 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 '