From cd670d9d59400c39672de50f020069dcf3e02ff8 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Thu, 27 Jun 2024 15:01:47 -0400 Subject: [PATCH] cli: fix asyncio runner bug for 3.10 (#860) --- .github/workflows/_integration_test.yml | 1 + libs/cli/langgraph_cli/exec.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.yml index 20514eb00..728f1b86d 100644 --- a/.github/workflows/_integration_test.yml +++ b/.github/workflows/_integration_test.yml @@ -12,6 +12,7 @@ jobs: strategy: matrix: python-version: + - "3.10" - "3.11" name: "CLI integration test" defaults: diff --git a/libs/cli/langgraph_cli/exec.py b/libs/cli/langgraph_cli/exec.py index 6f84a5192..b32eb44c3 100644 --- a/libs/cli/langgraph_cli/exec.py +++ b/libs/cli/langgraph_cli/exec.py @@ -22,7 +22,7 @@ def Runner(): pass def run(self, coro): - asyncio.run(coro) + return asyncio.run(coro) yield _Runner()