From e08f896802b29441d69d0a2d6ffd8746bd8f5728 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Aug 2021 11:35:31 -0700 Subject: [PATCH] build: Add a couple of annotations to RunTarget --- mesonbuild/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 00e2ff112..dbd98e402 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)