-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
New Resolver: Implement equality on candidate classes #7976
Conversation
Maybe just add a comment to the |
Sounds reasonable, added. |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
6ff8dd8
to
591d476
Compare
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.
Looks great!
return self.base == other.base and self.extras == other.extras | ||
return False | ||
|
||
# Needed for Python 2, which does not implement this by default |
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 legit don't wanna wait.
Hopefully this one is self-explainatory.
RequiresPythonCandidate
does not need this because there will always be exactly one instance, so the built-inobject.__eq__
is sufficient. Or maybe it would be more obvious if we implement it anyway withself is other
?