Skip to content

Commit 755a493

Browse files
committed
rookie mistake
1 parent f58be68 commit 755a493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmesh/core/scheduler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,9 @@ def _find_upstream_dependencies(
730730
parent_sid: SnapshotId,
731731
intervals_per_snapshot: t.Dict[str, Intervals],
732732
snapshots_to_create: t.Set[SnapshotId],
733-
cache: t.Dict[SnapshotId, t.Set[SchedulingUnit]] = {},
733+
cache: t.Optional[t.Dict[SnapshotId, t.Set[SchedulingUnit]]] = None,
734734
) -> t.Set[SchedulingUnit]:
735+
cache = cache or {}
735736
if parent_sid not in self.snapshots:
736737
return set()
737738
if parent_sid in cache:

0 commit comments

Comments
 (0)