[code-quality] How to tell pylint about base class attributes?

Skip Montanaro skip.montanaro at gmail.com
Mon Oct 19 13:29:07 EDT 2015


I'm linting a piece of code containing a class which inherits from a base
class which is not available at lint time. Consequently, I get all sorts of
messages about unknown attributes which the subclass uses from its parent.
Short of completely disabling E1101 (no-member), is there a way to say,
"class B, a subclass of class A which you can't see, really does have an
attribute named x"? The code for class A is not going to be available, as
I'm just running pylint in isolation from the rest of the environment in
which it is run.

Thx,

Skip Montanaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20151019/e0df931a/attachment.html>


More information about the code-quality mailing list