[PR #6210] fix(langgraph): handle multiple annotations w/ BaseChannel detection #4906

Closed
opened 2026-02-20 17:50:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6210

State: closed
Merged: Yes


This PR ensures that even if a type has multiple annotations, we can still detect the BaseChannel subclasses attached.

class State(TypedDict):
    # recognized as EphemeralValue(int)
    foo: Annotated[int, EphemeralValue]

    # now recognized as EphemeralValue(int)
    bar: Annotated[int, EphemeralValue, OtherMetadata]

    # now recognized as EphemeralValue(int)
    baz: Annotated[int, SomeMetadata, EphemeralValue, OtherMetadata]
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6210 **State:** closed **Merged:** Yes --- This PR ensures that even if a type has multiple annotations, we can still detect the `BaseChannel` subclasses attached. ```py class State(TypedDict): # recognized as EphemeralValue(int) foo: Annotated[int, EphemeralValue] # now recognized as EphemeralValue(int) bar: Annotated[int, EphemeralValue, OtherMetadata] # now recognized as EphemeralValue(int) baz: Annotated[int, SomeMetadata, EphemeralValue, OtherMetadata] ```
yindo added the pull-request label 2026-02-20 17:50:56 -05:00
yindo closed this issue 2026-02-20 17:50:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4906