diff --git a/core/dbt/events/types.py b/core/dbt/events/types.py index 8a49b91155e..362a43f08d9 100644 --- a/core/dbt/events/types.py +++ b/core/dbt/events/types.py @@ -1927,17 +1927,9 @@ def code(self) -> str: return "Z030" def message(self) -> str: - - class PartialSuccess: - def __str__(self) -> str: - return "partial success" - - def pluralize(self) -> str: - return f"{self}es" - error_plural = pluralize(self.num_errors, "error") warn_plural = pluralize(self.num_warnings, "warning") - partial_success_plural = pluralize(self.num_partial_success, PartialSuccess()) + partial_success_plural = f"""{self.num_partial_success} partial {"success" if self.num_partial_success == 1 else "successes"}""" if self.keyboard_interrupt: message = yellow("Exited because of keyboard interrupt")