From 9df8c6233124d4a1feb10f97a0fc9134c95c5c04 Mon Sep 17 00:00:00 2001 From: Chenyu Li Date: Thu, 19 Dec 2024 12:43:43 -0800 Subject: [PATCH] nits --- core/dbt/artifacts/resources/v1/model.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/dbt/artifacts/resources/v1/model.py b/core/dbt/artifacts/resources/v1/model.py index dbc7c4d0de3..aca176ad397 100644 --- a/core/dbt/artifacts/resources/v1/model.py +++ b/core/dbt/artifacts/resources/v1/model.py @@ -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" @@ -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