Skip to content

Commit

Permalink
Added Since section to the docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
GilboaAWS committed Jun 9, 2024
1 parent 7f6c493 commit 000803a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/python/glide/async_commands/cluster_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ async def sort_ro(
>>> await client.lpush("mylist", "a", "b", "c", "d")
>>> await client.sort_ro("mylist", limit=Limit(2, 2), order=OrderBy.DESC, alpha=True)
['b', 'a']
Since: Redis version 7.0.0.
"""
args = _build_sort_args(key, None, limit, None, order, alpha)
result = await self._execute_command(RequestType.SortReadOnly, args)
Expand Down
2 changes: 2 additions & 0 deletions python/python/glide/async_commands/standalone_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ async def sort_ro(
>>> await client.lpush("user_ids", 2, 1)
>>> await client.sort_ro("user_ids", by_pattern="user:*->age", get_patterns=["user:*->name"])
['Bob', 'Alice']
Since: Redis version 7.0.0.
"""
args = _build_sort_args(key, by_pattern, limit, get_patterns, order, alpha)
result = await self._execute_command(RequestType.SortReadOnly, args)
Expand Down
4 changes: 4 additions & 0 deletions python/python/glide/async_commands/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,8 @@ def sort_ro(
Command response:
List[Optional[str]]: Returns a list of sorted elements.
Since: Redis version 7.0.0.
"""
args = _build_sort_args(key, by_pattern, limit, get_patterns, order, alpha)
return self.append_command(RequestType.SortReadOnly, args)
Expand Down Expand Up @@ -2952,6 +2954,8 @@ def sort_ro(
Command response:
List[str]: A list of sorted elements.
Since: Redis version 7.0.0.
"""
args = _build_sort_args(key, None, limit, None, order, alpha)
return self.append_command(RequestType.SortReadOnly, args)
Expand Down

0 comments on commit 000803a

Please sign in to comment.