File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libs/astradb/langchain_astradb Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ def _dumps_generations(generations: RETURN_VAL_TYPE) -> str:
4747 """Serialization for generic RETURN_VAL_TYPE, i.e. sequence of `Generation`.
4848
4949 Args:
50- generations (RETURN_VAL_TYPE) : A list of language model generations.
50+ generations: A list of language model generations.
5151
5252 Returns:
53- str: a single string representing a list of generations.
53+ a single string representing a list of generations.
5454
5555 This function (+ its counterpart `_loads_generations`) rely on
5656 the dumps/loads pair with Reviver, so are able to deal
@@ -71,14 +71,14 @@ def _loads_generations(generations_str: str) -> RETURN_VAL_TYPE | None:
7171 See `_dumps_generations`, the inverse of this function.
7272
7373 Args:
74- generations_str (str) : A string representing a list of generations.
74+ generations_str: A string representing a list of generations.
7575
7676 Compatible with the legacy cache-blob format
7777 Does not raise exceptions for malformed entries, just logs a warning
7878 and returns none: the caller should be prepared for such a cache miss.
7979
8080 Returns:
81- RETURN_VAL_TYPE: A list of generations.
81+ A list of generations.
8282 """
8383 try :
8484 return [loads (_item_str ) for _item_str in json .loads (generations_str )]
You can’t perform that action at this time.
0 commit comments