flake8: fix typoed whitespace surrounding tokens

pull/10011/head
Eli Schwartz 3 years ago
parent 081f3b3545
commit baecebda0e
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/backend/backends.py
  2. 2
      mesonbuild/compilers/detect.py
  3. 2
      mesonbuild/dependencies/cmake.py
  4. 4
      mesonbuild/interpreter/interpreter.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]

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

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

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

Loading…
Cancel
Save