pylint #35642 Multiple inheritance not properly recognized [open]
module.py:
class CA:
def print_a(self):
class CB:
def print_b(self):
bug.py:
"M"
class CE(module.CA, module.CB):
def run(self):
# uppercase to stop pylint from complaining
pylint 0.21.1 run on bug.py with default settings gives the following warning and error messages:
python 2.6.5 runs bug.py without any errors. | |
priority | normal |
---|---|
type | bug |
done in | <not specified> |
closed by | <not specified> |
Comments
-
2010/07/02 15:05, written by andrewnelis
add commentI get this bug too with the latest repository copy of logilab.astng and pylint. The bug seems to be that logilab.astng.scoped_nodes.Class.ancestors only seems to return the first parent class, not the second one.
If I comment out lines 757 and 758:
It seems to work properly. But I am not sure this is a proper fix.