Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[
pylint
] Include name of base class in message forredefined-slots-in-subclass
(W0244
) #15559[
pylint
] Include name of base class in message forredefined-slots-in-subclass
(W0244
) #15559Changes from 3 commits
7f879e8
4a1e4f1
38735d8
7c9555a
0ea5823
b7466a4
77b291d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What's the reason for doing breadth-first? I think the original implementation did depth-first traversal.
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 guess my intuition is that the superclass graph will usually be deeper than it is wide (but maybe that assumption is off), and that the width is often pretty small in any event. Does that seem right to you?
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.
To save you the re-review, I'm gonna merge this in. But if you wake up in the middle of the night shouting "depth first!" I will be happy to change it back 😄
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.
Haha, no worries.
I'm not sure about this but I don't think this should necessarily affect the performance if that's your concern. One minor nit would be the usage of
VecDeque
in which the elements in memory are not guaranteed to be contiguous compared toVec
. This also makes the implementation inconsistent with the similar function in the same moduleany_base_class
.That said, we don't need to change anything here right now.