diff --git a/libs/langgraph/langgraph/utils/future.py b/libs/langgraph/langgraph/utils/future.py index a373d1cce..a895fe885 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[attr-defined] + return asyncio.eager_task_factory( # type:ignore loop, coro_or_future, name=name, context=context ) except RuntimeError: