mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-28 10:49:56 +02:00
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 <kakaogames@Justin-MacBook-Pro.local>
This commit is contained in:
co-authored by
kakaogames
parent
d0c0aa9697
commit
7021ce3742
@@ -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]()
|
||||
|
||||
Reference in New Issue
Block a user