interpreter: use typed_pos_args for install_man

pull/8884/head
Dylan Baker 4 years ago
parent f4d2efbed3
commit 9611bd8244
  1. 7
      mesonbuild/interpreter/interpreter.py

@ -1908,8 +1908,11 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
@FeatureNewKwargs('install_man', '0.47.0', ['install_mode'])
@FeatureNewKwargs('install_man', '0.58.0', ['locale'])
@permittedKwargs({'install_dir', 'install_mode', 'locale'})
def func_install_man(self, node, args, kwargs):
sources = self.source_strings_to_files(args)
@typed_pos_args('install_man', varargs=(str, mesonlib.File), min_varargs=1)
def func_install_man(self, node: mparser.BaseNode,
args: T.Tuple[T.List['SourceInputs']],
kwargs) -> build.Man:
sources = self.source_strings_to_files(args[0])
for s in sources:
try:
num = int(s.split('.')[-1])

Loading…
Cancel
Save