-
-
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
[no-meber] Module 'MySQLdb' has no 'ProgrammingError' member #1138
Comments
This seems to be an extension package. Pylint cannot easily understand them, providing only two useful tricks you can use:
Hope this helps. |
Unfortunately,
|
Also, isn't this duplicated pylint-dev/astroid#56 ? According to pylint-dev/astroid#56, adding whitelist by writing an astroid brain tip seems discouraged. But is the policy changed? |
I couldn't find the reason why |
The thing is that |
@PCManticore Thx. Apparently, the module name that's recognized by |
@soundlake That happens because MySQLDb has a C extension that it wraps (https://github.com/farcepest/MySQLdb1/blob/master/_mysql.c). |
@PCManticore Thank you for the explanation. I'm not pond of the situation, but I get the point. |
@PCManticore Does the same thing (the name of the C extension must be used with |
I had the same issue, but |
Steps to reproduce
Current behavior
[no-meber] Module 'MySQLdb' has no 'ProgrammingError' member
Expected behavior
No error occurs, MySQLdb has ProgrammingError attribute actually.
pylint --version output
The text was updated successfully, but these errors were encountered: