mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 07:02:25 +02:00
`AsyncPostgresStore._cursor` is expected to yield `AsyncCursor[DictRow]`. In the `else` branch the `row_factory` was not defined, meaning that it would yield `AsyncCursor[TupleRow]` (default). This resulted in an error in [langgraph/store/postgres/aio.py#L249](https://github.com/langchain-ai/langgraph/blob/main/libs/checkpoint-postgres/langgraph/store/postgres/aio.py#L249) (`TypeError: tuple indices must be integers or slices, not str`).