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:
Lee Jongwoo
2025-03-26 16:57:35 -04:00
committed by GitHub
co-authored by kakaogames
parent d0c0aa9697
commit 7021ce3742
+1 -1
View File
@@ -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]()