1 2 3 4 5 6
from analytics_service.models import Customer, RiskScore class RiskPolicy: def evaluate(self, customer: Customer, features: dict[str, int]) -> RiskScore: return RiskScore(customer.customer_id, customer.segment)