From 17761f3e5734720e5d798ae6434eca51edc1a13e Mon Sep 17 00:00:00 2001 From: psakievich Date: Fri, 26 Apr 2024 04:28:20 +0000 Subject: [PATCH] [@spackbot] updating style on behalf of psakievich --- lib/spack/spack/solver/asp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index db9c2ec42e9..8b3ce15331f 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -1396,7 +1396,6 @@ def condition( raise ValueError(f"Must provide a name for anonymous condition: '{required_spec}'") with spec_with_name(required_spec, name): - # Check if we can emit the requirements before updating the condition ID counter. # In this way, if a condition can't be emitted but the exception is handled in the # caller, we won't emit partial facts. @@ -2000,7 +1999,10 @@ def define_ad_hoc_versions_from_specs( # best possible, so they're guaranteed to be used preferentially. version = s.versions.concrete - if version is None or any((v == version and not isinstance(version, vn.GitVersion)) for v in self.possible_versions[s.name]): + if version is None or any( + (v == version and not isinstance(version, vn.GitVersion)) + for v in self.possible_versions[s.name] + ): continue if require_checksum and not _is_checksummed_git_version(version):