Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Sep 19, 2024
1 parent ed27e54 commit 7643c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langgraph/langgraph/graph/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def add_node(
)
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"
Expand Down

0 comments on commit 7643c11

Please sign in to comment.