join(question, draft) -> join([question, draft])

This commit is contained in:
Nuno Campos
2023-10-16 10:47:20 +01:00
parent 5c1619076d
commit 07c9199d18
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ editor = (
reviser = (
# subscribe to new values of "notes" channel,
# and join them with the current values of "question" and "draft"
Pregel.subscribe_to(["notes"]).join("question", "draft")
Pregel.subscribe_to(["notes"]).join(["question", "draft"])
| reviser_chain
| Pregel.send_to("draft")
)
+1 -1
View File
@@ -101,7 +101,7 @@ class PregelInvoke(RunnableBinding):
kwargs: Mapping[str, Any] = Field(default_factory=dict)
def join(self, *channels: str) -> PregelInvoke:
def join(self, channels: Sequence[str]) -> PregelInvoke:
joiner = RunnablePassthrough.assign(
**{chan: PregelRead(chan) for chan in channels}
)