Skip to content

Commit e38dc13

Browse files
pr feedback
1 parent 300541a commit e38dc13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqlmesh/dbt/builtin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,16 @@ def has_var(self, name: str) -> bool:
164164
return name in self.variables
165165

166166

167-
class ConfigObject:
167+
class Config:
168168
def __init__(self, config_dict: t.Dict[str, t.Any]) -> None:
169-
self._config = config_dict or {}
169+
self._config = config_dict
170170

171171
def __call__(self, **kwargs: t.Any) -> str:
172172
self._config.update(**kwargs)
173173
return ""
174174

175175
def set(self, name: str, value: t.Any) -> str:
176-
self.__call__(**{name: value})
176+
self._config.update({name: value})
177177
return ""
178178

179179
def _validate(self, name: str, validator: t.Callable, value: t.Optional[t.Any] = None) -> None:
@@ -447,7 +447,7 @@ def create_builtin_globals(
447447
if variables is not None:
448448
builtin_globals["var"] = Var(variables)
449449

450-
builtin_globals["config"] = ConfigObject(jinja_globals.pop("config", {}))
450+
builtin_globals["config"] = Config(jinja_globals.pop("config", {}))
451451

452452
deployability_index = (
453453
jinja_globals.get("deployability_index") or DeployabilityIndex.all_deployable()

0 commit comments

Comments
 (0)