diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-10-05 11:11:50 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-01 12:24:25 -0700 |
commit | f339c33394faf7531ce7836e81906db67ebf04ac (patch) | |
tree | 840fe632b6c47762532bc7cdaefb91b1e1d24f6e | |
parent | fea24ca174e63d300f85feeffbd14ab98a28bed7 (diff) | |
download | meson-f339c33394faf7531ce7836e81906db67ebf04ac.zip meson-f339c33394faf7531ce7836e81906db67ebf04ac.tar.gz meson-f339c33394faf7531ce7836e81906db67ebf04ac.tar.bz2 |
modules/gnome: use noPosargs for compile_schemas
-rw-r--r-- | mesonbuild/modules/gnome.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 66a3233..6bb1fbc 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 |