Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
GilboaAWS and Yury-Fridlyand authored Jun 9, 2024
1 parent b1e4bfa commit 7f6c493
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions python/python/glide/async_commands/cluster_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ async def sort(
) -> List[str]:
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
This command is routed to primary only.
This command is routed to primary nodes only.
To store the result into a new key, see `sort_store`.
By default, sorting is numeric, and elements are compared by their value interpreted as double precision floating point numbers.
Expand Down Expand Up @@ -426,7 +426,6 @@ async def sort_ro(
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
This command is routed depending on the client's `ReadFrom` strategy.
To store the result into a new key, see `sort_store`.
By default, sorting is numeric, and elements are compared by their value interpreted as double precision floating point numbers.
Expand Down
6 changes: 2 additions & 4 deletions python/python/glide/async_commands/standalone_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ async def sort(
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements.
This command is routed to primary only.
This command is routed to primary nodes only.
To store the result into a new key, see `sort_store`.
See https://valkey.io/commands/sort for more details.
Expand Down Expand Up @@ -341,9 +341,7 @@ async def sort_ro(
) -> List[Optional[str]]:
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements.
This command is routed depending on the client's `ReadFrom` strategy.
To store the result into a new key, see `sort_store`.
The `sort_ro` command can be used to sort elements based on different criteria and apply transformations on sorted elements.
See https://valkey.io/commands/sort_ro for more details.
Expand Down
6 changes: 1 addition & 5 deletions python/python/glide/async_commands/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ def sort(
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements.
This command is routed to primary only.
This command is routed to primary nodes only.
To store the result into a new key, see `sort_store`.
See https://valkey.io/commands/sort for more details.
Expand Down Expand Up @@ -2807,8 +2807,6 @@ def sort_ro(
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements.
This command is routed depending on the client's `ReadFrom` strategy.
To store the result into a new key, see `sort_store`.
See https://valkey.io/commands/sort_ro for more details.
Expand Down Expand Up @@ -2941,8 +2939,6 @@ def sort_ro(
) -> TTransaction:
"""
Sorts the elements in the list, set, or sorted set at `key` and returns the result.
This command is routed depending on the client's `ReadFrom` strategy.
To store the result into a new key, see `sort_store`.
See https://valkey.io/commands/sort_ro for more details.
Expand Down

0 comments on commit 7f6c493

Please sign in to comment.