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 = {}
return EnvironmentVariablesObject(initial_values, self.subproject)
@stringArgs
@typed_pos_args('join_paths', varargs=str, min_varargs=1)
@noKwargs
def func_join_paths(self, node, args, kwargs):
return self.join_path_strings(args)
def func_join_paths(self, node: mparser.BaseNode, args: T.Tuple[T.List[str]], kwargs: 'TYPE_kwargs') -> str:
return self.join_path_strings(args[0])
def run(self) -> None:
super().run()

Loading…
Cancel
Save