diff options
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 6 |
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: |