build: Add a couple of annotations to RunTarget

pull/9143/head
Dylan Baker 3 years ago committed by Daniel Mensinger
parent cd7d602f33
commit e08f896802
  1. 3
      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)

Loading…
Cancel
Save