Skip to content

Commit 8a334f8

Browse files
committed
Chore: Don't support string arguments for the 'config_for_node' API
1 parent 11dab16 commit 8a334f8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sqlmesh/core/context.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -946,11 +946,8 @@ def config_for_path(self, path: Path) -> t.Tuple[Config, Path]:
946946
pass
947947
return self.config, self.path
948948

949-
def config_for_node(self, node: str | Model | Audit) -> Config:
950-
if isinstance(node, str):
951-
path = self.get_snapshot(node, raise_if_missing=True).node._path
952-
else:
953-
path = node._path
949+
def config_for_node(self, node: Model | Audit) -> Config:
950+
path = node._path
954951
if path is None:
955952
return self.config
956953
return self.config_for_path(path)[0] # type: ignore

0 commit comments

Comments
 (0)