-
-
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
Update regression tests due to improved inference in astroid #4325
Conversation
I'm assuming that this probably doesn't need a changelog entry |
d188c98
to
a62cb39
Compare
(Note that these tests are XFAIL until the astroid changes land) |
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 just ran your changes against your astroid PR and noticed two small issue with the column numbers.
Aside from that, I agree these lines should be flagged.
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.
👍
@nelfin Just to be sure, it's only in draft mode because the astroid PR wasn't merged previously or do you plan to add anything else here? |
Depends astroid/pylint-dev#927. This custom logger subclass is now correctly inferred and so will raise the appropriate warnings.
Co-authored-by: Marc Mueller <[email protected]>
264d325
to
a660f27
Compare
Yep, that's exactly the case. I left it in draft so it wasn't merged beforehand (but I suppose the failing tests should have been enough).
Fixed |
Steps
doc/whatsnew/<current release.rst>
.Description
Depends pylint-dev/astroid#927. This custom logger subclass is now correctly
inferred and so will raise the appropriate warnings.
Type of Changes
Related Issue
pylint-dev/astroid#926