Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Dec 18, 2024
1 parent 4c3a38d commit 39281c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/langgraph/langgraph/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@ def _update_as_tuples(self) -> Sequence[tuple[str, Any]]:
for t in self.update
):
return self.update
else:
elif self.update is not None:
return [("__root__", self.update)]
else:
return []

PARENT: ClassVar[Literal["__parent__"]] = "__parent__"

Expand Down

0 comments on commit 39281c8

Please sign in to comment.