diff --git a/libs/langgraph/langgraph/utils/future.py b/libs/langgraph/langgraph/utils/future.py index a895fe885..a311133df 100644 --- a/libs/langgraph/langgraph/utils/future.py +++ b/libs/langgraph/langgraph/utils/future.py @@ -164,7 +164,7 @@ def _ensure_future( elif EAGER_NOT_SUPPORTED or lazy: return loop.create_task(coro_or_future, name=name, context=context) else: - return asyncio.eager_task_factory( # type:ignore + return asyncio.eager_task_factory( loop, coro_or_future, name=name, context=context ) except RuntimeError: