Skip to content

Conversation

simone-viozzi
Copy link

Description
Broaden the Messages alias from list[...] to Sequence[...] to avoid list invariance errors in type checkers when passing list[BaseMessage] (e.g., to add_messages). This is a typing-only change and does not alter runtime behavior.

Issue
Fixes #6207

Dependencies
None

Twitter handle

Copy link

vercel bot commented Sep 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langgraph-docs-preview Ignored Ignored Preview Sep 29, 2025 7:30am

@simone-viozzi simone-viozzi force-pushed the fix/messages-sequence-typing branch from f9b4fa2 to 408ee24 Compare September 29, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type checker error: langgraph.message:add_messages doesn’t accept list[BaseMessage]

1 participant