From a571a948459e419398b5e25a5238fef8cca468e3 Mon Sep 17 00:00:00 2001 From: Abdelkader Kouhli Date: Sat, 2 Oct 2021 09:33:18 +0200 Subject: [PATCH] Typo --- core/dbt/parser/sources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/dbt/parser/sources.py b/core/dbt/parser/sources.py index 2838208815a..e8f71390cee 100644 --- a/core/dbt/parser/sources.py +++ b/core/dbt/parser/sources.py @@ -344,7 +344,7 @@ def get_unused_msg( msg.append('') return '\n'.join(msg) -def merge_time(base: Optional[Time], update: Optional[Time]) -> Optional[Time]: +def merge_freshness_time_thresholds(base: Optional[Time], update: Optional[Time]) -> Optional[Time]: if base is None and update is None: return None elif base is None and update is not None: @@ -352,7 +352,7 @@ def merge_time(base: Optional[Time], update: Optional[Time]) -> Optional[Time]: elif base is not None and update is None: return base else: - # base and update not none + # base and update are not none return base.merged(update) def merge_freshness( @@ -360,7 +360,7 @@ def merge_freshness( ) -> Optional[FreshnessThreshold]: if base is not None and update is not None: merged_freshness = base.merged(update) - # merge one level deeper error and warn after threshold + # merge one level deeper the error_after and warn_after thresholds merged_error_after = merge_time(base.error_after, update.error_after) merged_warn_after = merge_time(base.warn_after, update.warn_after)