Skip to content

Commit f47fd94

Browse files
committed
Fix docstring
1 parent cd07602 commit f47fd94

File tree

1 file changed

+7
-3
lines changed
  • libs/langgraph-checkpoint-mongodb/langgraph/checkpoint/mongodb

1 file changed

+7
-3
lines changed

libs/langgraph-checkpoint-mongodb/langgraph/checkpoint/mongodb/saver.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,16 @@ def delete_thread(
471471
self.writes_collection.delete_many({"thread_id": thread_id})
472472

473473
async def aget_tuple(self, config: RunnableConfig) -> Optional[CheckpointTuple]:
474-
"""Get a checkpoint tuple from the database.
474+
"""Asynchronously fetch a checkpoint tuple using the given configuration.
475475
476476
Asynchronously wraps the blocking `self.get_tuple` method.
477477
478-
Args:
479-
config (RunnableConfig): The config to use for retrieving the checkpoint.
478+
Args:
479+
config: Configuration specifying which checkpoint to retrieve.
480+
481+
Returns:
482+
Optional[CheckpointTuple]: The requested checkpoint tuple, or None if not found.
483+
480484
"""
481485
return await run_in_executor(None, self.get_tuple, config)
482486

0 commit comments

Comments
 (0)