[Python-projects] Possible PyLint bug with imported "new-style" classes?
Hiltz-Laforge, Jason
Jason.Hiltz-Laforge at cognos.com
Wed Feb 6 21:20:00 CET 2008
Bonjour :-)
Thanks for all the hard work with PyLint. It's an excellent tool.
I've run into what may be a false positive for the E1101 (Instance of x
has no y data member) and E1002 (Use super on an old style class)
messages.
Here's a trivial example:
class Base(object):
def __init__(self):
super(Base, self).__init__()
class Derived(Base):
def __init__(self):
super(Derived, self).__init__()
Now, this lints with no issues if both classes are in the same python
file.
If I split it up into two files (say base.py and derived.py), and use
"from base import Base" in the latter, PyLint reports an E1101 and E1002
error. This is using pylint 0.13.2, astng 0.17.1 and logilab-common
0.22.2. Have I goofed this up somehow or is it simply a bug?
Cheers,
Jason
This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20080206/cee08804/attachment.htm
More information about the Python-Projects
mailing list