-
-
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
Fix deprecated-method
false positive
#7795
Fix deprecated-method
false positive
#7795
Conversation
β¦ilar to name of deprecated method. Closes pylint-dev#5886
for more information, see https://pre-commit.ci
Pull Request Test Coverage Report for Build 3498044805
π - Coveralls |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 2703b2d |
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.
Thank you! Makes sense. Test fails without the fix. Original issue that motivated the other PR still works:
$ cat a.py
import threading
print(threading.currentThread())
$ pylint a
************* Module a
a.py:3:6: W4902: Using deprecated method currentThread() (deprecated-method)
------------------------------------------------------------------
Your code has been rated at 5.00/10 (previous run: 5.00/10, +0.00)
(kinda) blocked by #7800, I'd like to test the new workflow with this if possible. |
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.
π
@clavedeluna This PR is emitting a warning in the test suite. Would you be available to take a look? See run.
|
Type of Changes
Description
Original PR that added this code https://github.com/PyCQA/pylint/pull/4619/files
it seems that the unit test that was added led the code, which is a good practice, except I believe the unit test itself was incorrect and confused the naming of
deprecated_method
. This wasn't a necessary change at all, and in fact led to a false positive.Closes #5886