-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Remove unnecessary base class and dead code in pylint.pyreverse.utils
#6712
Remove unnecessary base class and dead code in pylint.pyreverse.utils
#6712
Conversation
@Pierre-Sassoulas regarding your idea of user facing / dev related changes in #6632 (comment): |
Pull Request Test Coverage Report for Build 2394816447
💛 - Coveralls |
We'll do the switch for 2.15, let's keep on doing it like we were for 2.14. |
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.
LGTM, I think it can go in 2.14 even without changelog, it's an internal refactor, right ?
Yes, this should be purely internal. At least I would not say the I did a GitHub search and only found one instance where it was actually used, but that was just part of a demo talk in 2017. I'll add a ChangeLog entry anyway just so that any potential users could find some information about it. Doesn't cost much and might prevent questions, although I don't really expect any problems. |
…everse` (#6713) * Remove variables and code paths that are always static in productive use. * Add deprecation warning if an interface defined through ``__implements__`` is found. * Update pylint/pyreverse/inspector.py Co-authored-by: Pierre Sassoulas <[email protected]> * Group changelog entries together with refactor from #6712 Co-authored-by: Pierre Sassoulas <[email protected]>
doc/whatsnew/<current release.rst>
.and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
Ref #6582
Closes the first bullet point from the list:
ASTWalker
andLocalsVisitor
were apparently moved fromastroid.utils
topylint.pyreverse.utils
some years ago.Maybe originally there were also other subclasses of
ASTWalker
, but at least inpyreverse
that is not the case.Thus we can remove
ASTWalker
and some of the unused code in there and directly put the remaining stuff inLocalsVisitor
.Some remarks, as the diff is a bit hard to read imo:
handler
was alwaysself
-> removedhandler
and replaced references withself
walk
andleave
were never called -> removed