aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-10-05 11:22:48 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-11-01 12:24:25 -0700
commitbfd47cdac6b9aa540d55390a3d4b38aac6815e72 (patch)
tree3605793dc86a9b5f3e0c0057d7182a873f515c52 /mesonbuild
parent4a426f36491d2d4a10f30c2e47d4864b1b141ca3 (diff)
downloadmeson-bfd47cdac6b9aa540d55390a3d4b38aac6815e72.zip
meson-bfd47cdac6b9aa540d55390a3d4b38aac6815e72.tar.gz
meson-bfd47cdac6b9aa540d55390a3d4b38aac6815e72.tar.bz2
modules/gnome: use typed_pos_args for genmarshal
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 89dd828..9e6515b 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1636,10 +1636,8 @@ G_END_DECLS'''
@permittedKwargs({'sources', 'prefix', 'install_header', 'install_dir', 'stdinc',
'nostdinc', 'internal', 'skip_source', 'valist_marshallers',
'extra_args'})
- def genmarshal(self, state, args, kwargs):
- if len(args) != 1:
- raise MesonException(
- 'Genmarshal requires one positional argument.')
+ @typed_pos_args('gnome.genmarshal', str)
+ def genmarshal(self, state: 'ModuleState', args: T.Tuple[str], kwargs) -> ModuleReturnValue:
output = args[0]
if 'sources' not in kwargs: