aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-10 11:35:31 -0700
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-08-20 18:57:19 +0200
commite08f896802b29441d69d0a2d6ffd8746bd8f5728 (patch)
tree2812e43e894e577ea25a26c01f8d09fa3874309c
parentcd7d602f33a22c716ffbd6268eb8315701154ff1 (diff)
downloadmeson-e08f896802b29441d69d0a2d6ffd8746bd8f5728.zip
meson-e08f896802b29441d69d0a2d6ffd8746bd8f5728.tar.gz
meson-e08f896802b29441d69d0a2d6ffd8746bd8f5728.tar.bz2
build: Add a couple of annotations to RunTarget
-rw-r--r--mesonbuild/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 00e2ff1..dbd98e4 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2472,7 +2472,8 @@ class CustomTarget(Target, CommandBase):
yield CustomTargetIndex(self, i)
class RunTarget(Target, CommandBase):
- def __init__(self, name, command, dependencies, subdir, subproject, env=None):
+ def __init__(self, name: str, command, dependencies,
+ subdir: str, subproject: str, env: T.Optional['EnvironmentVariables'] = None):
self.typename = 'run'
# These don't produce output artifacts
super().__init__(name, subdir, subproject, False, MachineChoice.BUILD)