From f339c33394faf7531ce7836e81906db67ebf04ac Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 5 Oct 2021 11:11:50 -0700 Subject: [PATCH] modules/gnome: use noPosargs for compile_schemas --- mesonbuild/modules/gnome.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 66a3233f5..6bb1fbc12 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -980,9 +980,8 @@ class GnomeModule(ExtensionModule): @FeatureNewKwargs('build target', '0.40.0', ['build_by_default']) @permittedKwargs({'build_by_default', 'depend_files'}) - def compile_schemas(self, state, args, kwargs): - if args: - raise MesonException('Compile_schemas does not take positional arguments.') + @noPosargs + def compile_schemas(self, state: 'ModuleState', args: T.List['TYPE_var'], kwargs) -> ModuleReturnValue: srcdir = os.path.join(state.build_to_src, state.subdir) outdir = state.subdir