mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-25 09:02:25 +02:00
fix(lint): remove redundant cast flagged by mypy
This commit is contained in:
@@ -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]",
|
||||
|
||||
Reference in New Issue
Block a user