[code-quality] How to tell pylint about base class attributes?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the code-quality