From e36fb3cc1799a82ff212e3228ac52a43b88ccee5 Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Wed, 20 May 2020 12:55:06 -0600 Subject: [PATCH] clean up replace() calls --- core/dbt/contracts/graph/model_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/dbt/contracts/graph/model_config.py b/core/dbt/contracts/graph/model_config.py index 468695b521e..71498ce92da 100644 --- a/core/dbt/contracts/graph/model_config.py +++ b/core/dbt/contracts/graph/model_config.py @@ -267,8 +267,9 @@ def update_from( return self.from_dict(dct, validate=validate) def finalize_and_validate(self: T) -> T: - self.to_dict(validate=True) - return self.replace() + # from_dict will validate for us + dct = self.to_dict(omit_none=False, validate=False) + return self.from_dict(dct) @dataclass