File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1717import typing as t
1818import uuid
1919from concurrent .futures import ThreadPoolExecutor
20- from dataclasses import dataclass , field
20+ from dataclasses import asdict , dataclass , field
2121from datetime import datetime
2222from multiprocessing import get_context as get_mp_context
2323from pathlib import Path
@@ -284,14 +284,14 @@ def args(self) -> DbtConfiguration:
284284 return self ._args
285285
286286 @args .setter
287- def args (self , value : DbtConfiguration ) -> None :
287+ def args (self , value : DbtConfiguration | dict [ str , t . Any ] ) -> None : # pyright: ignore[reportPropertyTypeMismatch]
288288 """Set the args for the DbtProject instance and update runtime config."""
289+ if isinstance (value , dict ):
290+ merged_args = asdict (self ._args )
291+ merged_args .update (value )
292+ value = DbtConfiguration (** merged_args )
289293 set_from_args (value , None ) # pyright: ignore[reportArgumentType]
290- self .runtime_config = RuntimeConfig .from_args (value )
291- self .__manifest_loader = ManifestLoader (
292- self .runtime_config ,
293- self .runtime_config .load_dependencies (),
294- )
294+ self .parse_project (reparse_configuration = True )
295295 self ._args = value
296296
297297 @property
You can’t perform that action at this time.
0 commit comments