Skip to content

Commit

Permalink
Add functor to a couple of classes that based on their spec could use…
Browse files Browse the repository at this point in the history
… it.
  • Loading branch information
VersusFacit committed Oct 17, 2022
1 parent bc1d3b0 commit 7e59699
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/dbt/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ def message(self) -> str:

# TODO: switch to storing structured info and calling get_target_failure_msg
@dataclass
class InvalidDisabledSourceInTestNode(WarnLevel, pt.InvalidDisabledSourceInTestNode):
class InvalidDisabledSourceInTestNode(WarnLevel, EventStringFunctor, pt.InvalidDisabledSourceInTestNode):
def code(self):
return "I050"

Expand Down Expand Up @@ -2263,7 +2263,7 @@ def message(self) -> str:


@dataclass
class RunResultError(ErrorLevel, pt.RunResultError):
class RunResultError(ErrorLevel, EventStringFunctor, pt.RunResultError):
def code(self):
return "Z024"

Expand Down Expand Up @@ -2301,7 +2301,7 @@ def message(self) -> str:


@dataclass
class FirstRunResultError(ErrorLevel, pt.FirstRunResultError):
class FirstRunResultError(ErrorLevel, EventStringFunctor, pt.FirstRunResultError):
def code(self):
return "Z028"

Expand Down Expand Up @@ -2448,7 +2448,7 @@ def message(self) -> str:


@dataclass
class GeneralWarningMsg(WarnLevel, pt.GeneralWarningMsg):
class GeneralWarningMsg(WarnLevel, EventStringFunctor, pt.GeneralWarningMsg):
def code(self):
return "Z046"

Expand Down

0 comments on commit 7e59699

Please sign in to comment.