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

chore: add methods for making D2Connection hashable and comparable … #17

Merged
merged 1 commit into from
May 3, 2024

Conversation

netsatan
Copy link
Contributor

I didn't find any instructions on how you'd like to receive contributions (if at all), but it's worth a shot. :)

This one adds __hash__ and __eq__ methods to allow comparing connections without casting them to string first.

PS. Thanks for making this library, I'm using it in my project https://github.com/netsatan/specifipy as a dependency.

…to easily ensure uniqueness if needed

chore: add methods for making `D2Connection` hashable and comparable to easily ensure uniqueness if needed
@MrBlenny MrBlenny merged commit 587f25f into MrBlenny:main May 3, 2024
1 of 5 checks passed
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