From b3487cbc4985fc00c1dc5b81408bc73c5b0ce4a3 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Fri, 11 Apr 2025 00:06:31 +0200 Subject: [PATCH] Fix Python 3.9 --- libs/cli/langgraph_cli/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cli/langgraph_cli/config.py b/libs/cli/langgraph_cli/config.py index b1b802bda..6339b8eef 100644 --- a/libs/cli/langgraph_cli/config.py +++ b/libs/cli/langgraph_cli/config.py @@ -443,7 +443,7 @@ def _parse_node_version(version_str: str) -> int: ) from None -def _is_python_graph(spec: str | dict) -> bool: +def _is_python_graph(spec: Union[str, dict]) -> bool: """Check if a graph is a Python graph based on the file extension.""" # handle new style config