band-aider-pub/band_aider/judgement/composite_check.py
2026-07-16 18:38:58 -07:00

16 lines
379 B
Python

# SPDX-FileCopyrightText: 2026 Art Sea LLC
#
# SPDX-License-Identifier: AGPL-3.0-only
from dataclasses import dataclass
from typing import List
from band_aider.judgement.check import Check
@dataclass
class CompositeCheck(Check):
aggregate_checks: List[Check]
def __call__(self, *args, **kwargs) -> bool:
return all(map(lambda c: c(), self.aggregate_checks))