aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-16 19:55:46 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-02-16 23:00:31 -0500
commit9daaece7850cdd378163cd50bc524693f5294309 (patch)
tree80ca0ec55fbe6829f99e84fdfa3a1415985c3351 /mesonbuild/modules
parent0d6972887f1b7d39524c5faff0b3c8612b5d0ece (diff)
downloadmeson-9daaece7850cdd378163cd50bc524693f5294309.zip
meson-9daaece7850cdd378163cd50bc524693f5294309.tar.gz
meson-9daaece7850cdd378163cd50bc524693f5294309.tar.bz2
flake8: fix various whitespace errors with badly aligned code
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/gnome.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index b7427b6..06a1f34 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -339,7 +339,8 @@ class GnomeModule(ExtensionModule):
# Normal program lookup
return state.find_program(name, required=required)
- @typed_kwargs('gnome.post_install',
+ @typed_kwargs(
+ 'gnome.post_install',
KwargInfo('glib_compile_schemas', bool, default=False),
KwargInfo('gio_querymodules', ContainerTypeInfo(list, str), default=[], listify=True),
KwargInfo('gtk_update_icon_cache', bool, default=False),
@@ -899,7 +900,7 @@ class GnomeModule(ExtensionModule):
libsources: T.Sequence[T.Union[
str, mesonlib.File, build.GeneratedList,
build.CustomTarget, build.CustomTargetIndex]]
- ) -> str:
+ ) -> str:
gir_filelist_dir = state.backend.get_target_private_dir_abs(girtargets[0])
if not os.path.isdir(gir_filelist_dir):
os.mkdir(gir_filelist_dir)
@@ -1061,12 +1062,12 @@ class GnomeModule(ExtensionModule):
KwargInfo('includes', ContainerTypeInfo(list, (str, GirTarget)), default=[], listify=True),
KwargInfo('install_gir', (bool, NoneType), since='0.61.0'),
KwargInfo('install_dir_gir', (str, bool, NoneType),
- deprecated_values={False: ('0.61.0', 'Use install_gir to disable installation')},
- validator=lambda x: 'as boolean can only be false' if x is True else None),
+ deprecated_values={False: ('0.61.0', 'Use install_gir to disable installation')},
+ validator=lambda x: 'as boolean can only be false' if x is True else None),
KwargInfo('install_typelib', (bool, NoneType), since='0.61.0'),
KwargInfo('install_dir_typelib', (str, bool, NoneType),
- deprecated_values={False: ('0.61.0', 'Use install_typelib to disable installation')},
- validator=lambda x: 'as boolean can only be false' if x is True else None),
+ deprecated_values={False: ('0.61.0', 'Use install_typelib to disable installation')},
+ validator=lambda x: 'as boolean can only be false' if x is True else None),
KwargInfo('link_with', ContainerTypeInfo(list, (build.SharedLibrary, build.StaticLibrary)), default=[], listify=True),
KwargInfo('namespace', str, required=True),
KwargInfo('nsversion', str, required=True),
@@ -1360,7 +1361,7 @@ class GnomeModule(ExtensionModule):
KwargInfo('mkdb_args', ContainerTypeInfo(list, str), default=[], listify=True),
KwargInfo(
'mode', str, default='auto', since='0.37.0',
- validator=in_set_validator({'xml', 'sgml', 'none', 'auto'})),
+ validator=in_set_validator({'xml', 'sgml', 'none', 'auto'})),
KwargInfo('module_version', str, default='', since='0.48.0'),
KwargInfo('namespace', str, default='', since='0.37.0'),
KwargInfo('scan_args', ContainerTypeInfo(list, str), default=[], listify=True),