flake8: fix various whitespace errors with badly aligned code

pull/10011/head
Eli Schwartz 3 years ago
parent 0d6972887f
commit 9daaece785
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 3
      mesonbuild/compilers/detect.py
  2. 5
      mesonbuild/compilers/mixins/pgi.py
  3. 3
      mesonbuild/modules/gnome.py

@ -255,8 +255,7 @@ def _get_compilers(env: 'Environment', lang: str, for_machine: MachineChoice) ->
def _handle_exceptions(
exceptions: T.Mapping[str, T.Union[Exception, str]],
binaries: T.List[T.List[str]],
bintype: str = 'compiler'
) -> T.NoReturn:
bintype: str = 'compiler') -> T.NoReturn:
errmsg = f'Unknown {bintype}(s): {binaries}'
if exceptions:
errmsg += '\nThe following exception(s) were encountered:'

@ -49,11 +49,12 @@ class PGICompiler(Compiler):
self.base_options = {OptionKey('b_pch')}
default_warn_args = ['-Minform=inform']
self.warn_args = {'0': [],
self.warn_args: T.Dict[str, T.List[str]] = {
'0': [],
'1': default_warn_args,
'2': default_warn_args,
'3': default_warn_args
} # type: T.Dict[str, T.List[str]]
}
def get_module_incdir_args(self) -> T.Tuple[str]:
return ('-module', )

@ -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),

Loading…
Cancel
Save