From 7021ce374281ea1559ec9dbc32eb4072cb070b3a Mon Sep 17 00:00:00 2001 From: Lee Jongwoo Date: Thu, 27 Mar 2025 05:57:35 +0900 Subject: [PATCH] patch: fix return type of Topic.update (#4029) This PR fixes the return type annotation of the `update` method from `None` to `bool`, as the method returns a boolean value indicating whether self.values has changed Co-authored-by: kakaogames --- libs/langgraph/langgraph/channels/topic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/channels/topic.py b/libs/langgraph/langgraph/channels/topic.py index 91e7027f9..5b081ee4c 100644 --- a/libs/langgraph/langgraph/channels/topic.py +++ b/libs/langgraph/langgraph/channels/topic.py @@ -62,7 +62,7 @@ class Topic( empty.values = checkpoint return empty - def update(self, values: Sequence[Union[Value, list[Value]]]) -> None: + def update(self, values: Sequence[Union[Value, list[Value]]]) -> bool: current = list(self.values) if not self.accumulate: self.values = list[Value]()