diff --git a/dbt/adapters/events/types.py b/dbt/adapters/events/types.py index a1d46f74..7d98269d 100644 --- a/dbt/adapters/events/types.py +++ b/dbt/adapters/events/types.py @@ -429,5 +429,9 @@ def code(self) -> str: return "E050" def message(self) -> str: - msg = f"The `type_code` {self.type_code} was not recognized, which may affect error messages for enforced contracts that fail as well as `Column.data_type` values returned by `get_column_schema_from_query`" - return msg + msg = ( + f"The `type_code` {self.type_code} was not recognized, which may affect error " + "messages for enforced contracts that fail as well as `Column.data_type` values " + "returned by `get_column_schema_from_query`" + ) + return line_wrap_message(warning_tag(msg))