mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 03:37:51 +02:00
Lint
This commit is contained in:
@@ -320,7 +320,7 @@ class StateGraph(Graph):
|
||||
)
|
||||
if not isinstance(node, str):
|
||||
action = node
|
||||
node = getattr(action, "name", getattr(action, "__name__", None))
|
||||
node = cast(str, getattr(action, "name", getattr(action, "__name__", None)))
|
||||
if node is None:
|
||||
raise ValueError(
|
||||
"Node name must be provided if action is not a function"
|
||||
|
||||
Reference in New Issue
Block a user