From e9e2a93bc681fb5b67134fece003bd8016e48551 Mon Sep 17 00:00:00 2001 From: Brad Edwards Date: Sun, 12 Jul 2026 18:08:13 +0200 Subject: [PATCH] refactor(conformance): drop redundant tuple() around tuple literals (S7496) SonarCloud activated python:S7496 and flagged the dev->main promotion (PR #740) on tuple((*a, *b)) in aces_conformance/conformance.py, where the inner starred expression is already a tuple. Unwrap both occurrences. No behaviour change. --- .../python/packages/aces_conformance/conformance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implementations/python/packages/aces_conformance/conformance.py b/implementations/python/packages/aces_conformance/conformance.py index e22431a23..ef413f9e9 100644 --- a/implementations/python/packages/aces_conformance/conformance.py +++ b/implementations/python/packages/aces_conformance/conformance.py @@ -1247,7 +1247,7 @@ def run_target_conformance( participant_claim_gaps = participant_runtime_capability_contract_gaps(target.manifest) observation_claim_gaps = observation_capability_contract_gaps(target.manifest) claim_gaps = (*participant_claim_gaps, *observation_claim_gaps) - capability_gaps = tuple((*surface_gaps, *claim_gaps)) + capability_gaps = (*surface_gaps, *claim_gaps) passed = fixture_report.passed and not contract_gaps and not capability_gaps diagnostics = list(fixture_report.diagnostics) if contract_gaps: @@ -1276,7 +1276,7 @@ def run_target_conformance( ) ) target_cases = _target_adapter_cases(target, effective_profile, reference_scenario=reference_scenario) - cases = tuple((*fixture_report.cases, *target_cases)) + cases = (*fixture_report.cases, *target_cases) passed = passed and all(case.passed for case in target_cases) return BackendConformanceReport( profile=_to_profile_id(effective_profile),