From baecebda0e66ee76358854c452e96e5ed70a75de Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 1 Feb 2022 02:06:50 -0500 Subject: flake8: fix typoed whitespace surrounding tokens --- mesonbuild/backend/backends.py | 2 +- mesonbuild/compilers/detect.py | 2 +- mesonbuild/dependencies/cmake.py | 2 +- mesonbuild/interpreter/interpreter.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index b26779a..2efae0f 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -51,7 +51,7 @@ if T.TYPE_CHECKING: class TargetIntrospectionData(TypedDict): language: str - compiler : T.List[str] + compiler: T.List[str] parameters: T.List[str] sources: T.List[str] generated_sources: T.List[str] diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 9216ecf..f347a63 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -613,7 +613,7 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin ccache + compiler, version, for_machine, is_cross, info, exe_wrap, full_version=full_version, linker=l) if 'TMS320C2000 C/C++' in out or 'MSP430 C/C++' in out or 'TI ARM C/C++ Compiler' in out: - lnk : T.Union[T.Type[C2000DynamicLinker], T.Type[TIDynamicLinker]] + lnk: T.Union[T.Type[C2000DynamicLinker], T.Type[TIDynamicLinker]] if 'TMS320C2000 C/C++' in out: cls = C2000CCompiler if lang == 'c' else C2000CPPCompiler lnk = C2000DynamicLinker diff --git a/mesonbuild/dependencies/cmake.py b/mesonbuild/dependencies/cmake.py index 691d402..c8eaf9e 100644 --- a/mesonbuild/dependencies/cmake.py +++ b/mesonbuild/dependencies/cmake.py @@ -546,7 +546,7 @@ class CMakeDependency(ExternalDependency): if not autodetected_module_list: self.found_modules += [i] - rtgt = resolve_cmake_trace_targets(i ,self.traceparser, self.env, + rtgt = resolve_cmake_trace_targets(i, self.traceparser, self.env, clib_compiler=self.clib_compiler, not_found_warning=lambda x: mlog.warning('CMake: Dependency', mlog.bold(x), 'for', mlog.bold(name), 'was not found') ) diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 0987309..63da021 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -1029,7 +1029,7 @@ external dependencies (including libraries) must go to "dependencies".''') if initial_values is not None: FeatureNew.single_use('configuration_data dictionary', '0.49.0', self.subproject, location=node) for k, v in initial_values.items(): - if not isinstance(v, (str, int ,bool)): + if not isinstance(v, (str, int, bool)): raise InvalidArguments( f'"configuration_data": initial value dictionary key "{k!r}"" must be "str | int | bool", not "{v!r}"') return build.ConfigurationData(initial_values) @@ -2308,7 +2308,7 @@ external dependencies (including libraries) must go to "dependencies".''') if isinstance(conf, dict): FeatureNew.single_use('configure_file.configuration dictionary', '0.49.0', self.subproject, location=node) for k, v in conf.items(): - if not isinstance(v, (str, int ,bool)): + if not isinstance(v, (str, int, bool)): raise InvalidArguments( f'"configuration_data": initial value dictionary key "{k!r}"" must be "str | int | bool", not "{v!r}"') conf = build.ConfigurationData(conf) -- cgit v1.1