fix(lint): remove redundant cast flagged by mypy

This commit is contained in:
Sydney Runkle
2026-05-06 15:08:37 -04:00
parent e8c6d9cc31
commit 2239aae856
+1 -1
View File
@@ -282,7 +282,7 @@ def _messages_delta_reducer(
# (never chunks), so skip convert_to_messages on the fast path.
# Only raw input (initial dicts, deserialized blobs) hits the slow path.
if state and isinstance(state[0], BaseMessage):
state_msgs = cast("list[AnyMessage]", state)
state_msgs = state
else:
state_msgs = cast(
"list[AnyMessage]",