allow path_map keys to be non-strings in add_conditional_edges

This commit is contained in:
vbarda
2024-06-07 14:27:58 -04:00
parent ba4aa2a875
commit 68774a2b0f
+1 -1
View File
@@ -178,7 +178,7 @@ class Graph:
Callable[..., Awaitable[Union[str, list[str]]]],
Runnable[Any, Union[str, list[str]]],
],
path_map: Optional[Union[dict[str, str], list[str]]] = None,
path_map: Optional[Union[dict[Any, str], list[str]]] = None,
then: Optional[str] = None,
) -> None:
"""Add a conditional edge from the starting node to any number of destination nodes.