From 6fd1dc5697ec3a39b0b7d39da01ae30184b50403 Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Tue, 16 Jul 2024 08:43:49 -0700 Subject: [PATCH] Add note to docstring (#1035) --- libs/langgraph/langgraph/graph/graph.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/langgraph/langgraph/graph/graph.py b/libs/langgraph/langgraph/graph/graph.py index 7dbbf184c..24c6396a9 100644 --- a/libs/langgraph/langgraph/graph/graph.py +++ b/libs/langgraph/langgraph/graph/graph.py @@ -217,6 +217,10 @@ class Graph: Returns: None + + Note: Without typehints on the `path` function's return value (e.g., `-> Literal["foo", "__end__"]:`) + or a path_map, the graph visualization assumes the edge could transition to any node in the graph. + """ # noqa: E501 if self.compiled: logger.warning(