diff --git a/libs/langgraph/langgraph/graph/state.py b/libs/langgraph/langgraph/graph/state.py index 559bd021b..23ece0d65 100644 --- a/libs/langgraph/langgraph/graph/state.py +++ b/libs/langgraph/langgraph/graph/state.py @@ -1240,7 +1240,7 @@ def _control_branch(value: Any) -> Sequence[tuple[str, Any]]: for command in commands: if command.graph == Command.PARENT: raise ParentCommand(command) - + goto_targets = ( [command.goto] if isinstance(command.goto, (Send, str)) else command.goto ) @@ -1251,7 +1251,7 @@ def _control_branch(value: Any) -> Sequence[tuple[str, Any]]: elif isinstance(go, str) and go != END: # END is a special case, it's not actually a node in a practical sense # but rather a special terminal node that we don't need to branch to - rtn.append((CHANNEL_BRANCH_TO.format(go), None)) + rtn.append((_CHANNEL_BRANCH_TO.format(go), None)) return rtn diff --git a/libs/langgraph/uv.lock b/libs/langgraph/uv.lock index 49c7906c1..121887e8f 100644 --- a/libs/langgraph/uv.lock +++ b/libs/langgraph/uv.lock @@ -1394,7 +1394,7 @@ dev = [ [[package]] name = "langgraph-cli" -version = "0.3.4" +version = "0.3.5" source = { editable = "../cli" } dependencies = [ { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },