Skip to content
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

Merged
merged 5 commits into from
May 9, 2024

Conversation

aaron-congo
Copy link

https://redis.io/docs/latest/commands/zdiff/
Note: depends on update to cluster_routing.rs in redis-rs

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dict or Mapping?

Copy link
Author

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

@Yury-Fridlyand
Copy link

Maybe you need to rebase your branches to let CI pass

@aaron-congo aaron-congo changed the base branch from python/integ_acongo_zdiff to main May 9, 2024 23:20
@aaron-congo aaron-congo changed the base branch from main to python/integ_acongo_zdiff May 9, 2024 23:20
@aaron-congo aaron-congo merged commit 44536b4 into python/integ_acongo_zdiff May 9, 2024
44 checks passed
@aaron-congo aaron-congo deleted the python/dev_acongo_zdiff branch May 9, 2024 23:40
aaron-congo added a commit that referenced this pull request May 13, 2024
tjzhang-BQ pushed a commit that referenced this pull request May 13, 2024
* Python: add ZDIFF command (#255)

* Add PR link in CHANGELOG

* PR suggestions
cyip10 pushed a commit that referenced this pull request Jun 24, 2024
* Python: add ZDIFF command (#255)

* Add PR link in CHANGELOG

* PR suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants