-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: add ZDIFF command #255
Python: add ZDIFF command #255
Conversation
6d8c989
to
5b3f77b
Compare
keys (List[str]): The keys of the sorted sets. | ||
|
||
Returns: | ||
Dict[str, float]: A dictionary of elements and their scores representing the difference between the sorted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dict
or Mapping
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't aware of the Mapping type but apparently it is a more general type than Dict. Its unclear which one is better, the existing code uses both somewhat interchangeably. According to this SO post Dict is preferred for return types and Mapping for arguments, but the existing code has both types in both places
Maybe you need to rebase your branches to let CI pass |
dcb022e
to
11c52fe
Compare
* Python: add ZDIFF command (#255) * Add PR link in CHANGELOG * PR suggestions
* Python: add ZDIFF command (#255) * Add PR link in CHANGELOG * PR suggestions
https://redis.io/docs/latest/commands/zdiff/
Note: depends on update to cluster_routing.rs in redis-rs