aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-10-05 11:21:48 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-11-01 12:24:25 -0700
commit4a426f36491d2d4a10f30c2e47d4864b1b141ca3 (patch)
tree2d9c81bb7eca30c794eece32e8b75cf2ea0a4419 /mesonbuild/modules/gnome.py
parent625fbf524377c6708dd22699d8ab3251bce98f28 (diff)
downloadmeson-4a426f36491d2d4a10f30c2e47d4864b1b141ca3.zip
meson-4a426f36491d2d4a10f30c2e47d4864b1b141ca3.tar.gz
meson-4a426f36491d2d4a10f30c2e47d4864b1b141ca3.tar.bz2
modules/gnome: use typed_pos_Args for mkenums_simple
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 19587b9..89dd828 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1508,9 +1508,10 @@ class GnomeModule(ExtensionModule):
return ModuleReturnValue(targets, targets)
@FeatureNew('gnome.mkenums_simple', '0.42.0')
- def mkenums_simple(self, state, args, kwargs):
- hdr_filename = args[0] + '.h'
- body_filename = args[0] + '.c'
+ @typed_pos_args('gnome.mkenums_simple', str)
+ def mkenums_simple(self, state: 'ModuleState', args: T.Tuple[str], kwargs) -> ModuleReturnValue:
+ hdr_filename = f'{args[0]}.h'
+ body_filename = f'{args[0]}.c'
# not really needed, just for sanity checking
forbidden_kwargs = ['c_template', 'h_template', 'eprod', 'fhead',