aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-10-05 11:20:07 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-11-01 12:24:25 -0700
commit625fbf524377c6708dd22699d8ab3251bce98f28 (patch)
tree4855b26cc7c9ed273abcbd725feda3ca5890d436 /mesonbuild
parent53a187ba2a50d5de6c88f0697a3ea30c0999c29d (diff)
downloadmeson-625fbf524377c6708dd22699d8ab3251bce98f28.zip
meson-625fbf524377c6708dd22699d8ab3251bce98f28.tar.gz
meson-625fbf524377c6708dd22699d8ab3251bce98f28.tar.bz2
modules/gnome: use typed_pos_args for mkenums
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 1931ac8..19587b9 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1399,9 +1399,8 @@ class GnomeModule(ExtensionModule):
@permittedKwargs({'sources', 'c_template', 'h_template', 'install_header', 'install_dir',
'comments', 'identifier_prefix', 'symbol_prefix', 'eprod', 'vprod',
'fhead', 'fprod', 'ftail', 'vhead', 'vtail', 'depends'})
- def mkenums(self, state, args, kwargs):
- if len(args) != 1:
- raise MesonException('Mkenums requires one positional argument.')
+ @typed_pos_args('gnome.mkenums', str)
+ def mkenums(self, state: 'ModuleState', args: T.Tuple[str], kwargs) -> ModuleReturnValue:
basename = args[0]
if 'sources' not in kwargs: