-
-
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
False positive for math sqrt function #4592
Comments
Hello, thank you for opening the issue, I can't reproduce this problem. What is your operating system and environment ? |
@Pierre-Sassoulas I am working on Mac OS Catalina in terminal. Installed pylint using |
This duplicates #1524 |
Thank you for solving this. You must have a C binding for |
disallowed-name picks up on 'foo' name used in tests. The rest of the disallowed names are not something I'd use in src/, anyway. On macOS the 'math' module apparently has C bindings, and pylint wasn't correctly seeing math.isnan; c.f. pylint-dev/pylint#4592
disallowed-name picks up on 'foo' name used in tests. The rest of the disallowed names are not something I'd use in src/, anyway. On macOS the 'math' module apparently has C bindings, and pylint wasn't correctly seeing math.isnan; c.f. pylint-dev/pylint#4592
Steps to reproduce
Given a file
a.py
:Current behavior
Result of
pylint a.py
:Expected behavior
pylint should not give error for math.sqrt function
pylint --version output
Result of
pylint --version
output:On Stable release
On preview release
The text was updated successfully, but these errors were encountered: