Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx committed Dec 19, 2024
1 parent 7a8be34 commit 9df8c62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/dbt/artifacts/resources/v1/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TimeSpine(dbtClassMixin):
custom_granularities: List[CustomGranularity] = field(default_factory=list)


class ModelFreshnessDependsOnOptions(enum.StrEnum):
class ModelFreshnessDependsOnOptions(enum.Enum):
all = "all"
any = "any"

Expand All @@ -50,9 +50,7 @@ class ModelBuildAfter(Time):

@dataclass
class ModelFreshness(dbtClassMixin):
build_after: ModelBuildAfter = field(
default_factory=lambda: ModelBuildAfter(period=TimePeriod.hour, count=0)
)
build_after: ModelBuildAfter = field(default_factory=ModelBuildAfter)


@dataclass
Expand Down

0 comments on commit 9df8c62

Please sign in to comment.