diff --git a/langgraph/graph/state.py b/langgraph/graph/state.py index 86e764504..fb9380a1c 100644 --- a/langgraph/graph/state.py +++ b/langgraph/graph/state.py @@ -295,7 +295,7 @@ def _get_channels(schema: Type[dict]) -> dict[str, BaseChannel]: } -def _get_channel(annotation: Any) -> Optional[BaseChannel]: +def _get_channel(annotation: Any) -> BaseChannel: if channel := _is_field_binop(annotation): return channel return LastValue(annotation)