Skip to content

Consistent hash#417

Merged
radoering merged 2 commits intopython-poetry:mainfrom
dimbleby:consistent-hash
Jul 31, 2022
Merged

Consistent hash#417
radoering merged 2 commits intopython-poetry:mainfrom
dimbleby:consistent-hash

Conversation

@dimbleby
Copy link
Copy Markdown
Contributor

The __eq__ and __hash__ implementations on the SingleMarker did not use the same things - one of them looked at the constraint and the other at the constraint_string. I've added a testcase demonstrating the difference.

Then I noticed that no-one actually uses the constraint_string anyway, so removed it. I've done that in a separate commit in case it's controversial...

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@radoering radoering merged commit 7efc33e into python-poetry:main Jul 31, 2022
@dimbleby dimbleby deleted the consistent-hash branch July 31, 2022 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants