Skip to content
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

incorrect analysing of etree #1234

Closed
vitaly-zdanevich opened this issue Dec 21, 2016 · 1 comment · May be fixed by #9128
Closed

incorrect analysing of etree #1234

vitaly-zdanevich opened this issue Dec 21, 2016 · 1 comment · May be fixed by #9128

Comments

@vitaly-zdanevich
Copy link

from lxml import etree

print(etree.tostring)

pylint says that
Module 'lxml.etree' has no 'tostring' member (no-member)

but this is wrong.

pylint --version output

No config file found, using default configuration
pylint 1.6.4,
astroid 1.4.8
Python 3.5.2 (default, Oct 11 2016, 04:59:56)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)]
@PCManticore
Copy link
Contributor

Try with pylint --extension-pkg-whitelist=lxml. This library is a C library, pylint can't know out of the box what members does it have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants