Fix some typing issues in langgraph lib

This commit is contained in:
Nuno Campos
2024-09-19 11:38:41 -07:00
parent b529365f5b
commit 9a8cc75ea2
40 changed files with 432 additions and 298 deletions
@@ -7,7 +7,6 @@ from typing import (
Callable,
Dict,
Iterator,
List,
Optional,
Sequence,
Tuple,
@@ -216,7 +215,7 @@ class AsyncSqliteSaver(BaseCheckpointSaver[str]):
).result()
def put_writes(
self, config: RunnableConfig, writes: List[Tuple[str, Any]], task_id: str
self, config: RunnableConfig, writes: Sequence[Tuple[str, Any]], task_id: str
) -> None:
return asyncio.run_coroutine_threadsafe(
self.aput_writes(config, writes, task_id), self.loop