def METHOD_NAME(self, preds: Union[str, List[str]], target: Union[str, List[str]]) -> None:
    """Update state with predictions and targets."""
    errors, target_total, preds_total = _wil_update(preds, target)
    self.errors += errors
    self.target_total += target_total
    self.preds_total += preds_total