interpreter: use typed_pos_args for join_paths

pull/8953/head
Dylan Baker 3 years ago
parent 9ecd578167
commit e71a6544c5
  1. 6
      mesonbuild/interpreter/interpreter.py

@ -2470,10 +2470,10 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
initial_values = {} initial_values = {}
return EnvironmentVariablesObject(initial_values, self.subproject) return EnvironmentVariablesObject(initial_values, self.subproject)
@stringArgs @typed_pos_args('join_paths', varargs=str, min_varargs=1)
@noKwargs @noKwargs
def func_join_paths(self, node, args, kwargs): def func_join_paths(self, node: mparser.BaseNode, args: T.Tuple[T.List[str]], kwargs: 'TYPE_kwargs') -> str:
return self.join_path_strings(args) return self.join_path_strings(args[0])
def run(self) -> None: def run(self) -> None:
super().run() super().run()

Loading…
Cancel
Save