diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-06-14 15:36:16 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-06-22 09:13:41 -0700 |
commit | 9611bd82443230a17f711a25688f05f4f816a426 (patch) | |
tree | b78cbc58f2a22be19f1ed4c94598fbb9e1910e71 /mesonbuild/interpreter/interpreter.py | |
parent | f4d2efbed3a589bc7dbb129778eb2debb1f5fb2e (diff) | |
download | meson-9611bd82443230a17f711a25688f05f4f816a426.zip meson-9611bd82443230a17f711a25688f05f4f816a426.tar.gz meson-9611bd82443230a17f711a25688f05f4f816a426.tar.bz2 |
interpreter: use typed_pos_args for install_man
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 8513054..0b496b3 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/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]) |