This commit is contained in:
Nuno Campos
2025-03-20 08:40:05 -07:00
parent 43f5a17416
commit 0ac29434a7
+2 -2
View File
@@ -582,7 +582,7 @@ class PregelLoop(LoopProtocol):
else:
task.writes.append((k, v))
def _first(self, *, input_keys: Union[str, Sequence[str]]) -> Union[set[str]]:
def _first(self, *, input_keys: Union[str, Sequence[str]]) -> Optional[set[str]]:
# resuming from previous checkpoint requires
# - finding a previous checkpoint
# - receiving None input (outer graph) or RESUMING flag (subgraph)
@@ -600,7 +600,7 @@ class PregelLoop(LoopProtocol):
)
)
# this can be set only when there are input_writes
updated_channels: Union[set[str]] = None
updated_channels: Optional[set[str]] = None
# map command to writes
if isinstance(self.input, Command):