[code-quality] Lots of E1101 in standard modules after upgrading pylint to 1.4.0

Paul Smith paul at mad-scientist.net
Wed Nov 26 08:03:05 CET 2014


Hi all; I just upgraded to a newer version of pylint and now I'm seeing
many spurious E1101 errors.

Before I was using:
      * Python 2.7.6
      * Pylint 1.1.0
      * Astroid 1.0.1
      * logilab-common 0.61.0

Now I've upgraded to:
      * Python 2.7.8
      * Pylint 1.4.0
      * Astroid 1.3.2
      * logilab-common 0.63.0

Everything about this new install appears to work fine, EXCEPT pylint.

I'm seeing tons of strange E1101 error on standard modules, like
time.sleep() and others (readline, etc.)  For example:

$ cat sl.py
import time
time.sleep(1)

$ python sl.py
<sleeps for 1s successfully>

$ pylint sl.py
************* Module sl
C:  1, 0: Missing module docstring (missing-docstring)
E:  2, 0: Module 'time' has no 'sleep' member (no-member)

If I run this with my old setup (older python/pylint/etc.), it doesn't
complain at all.  Why am I seeing this invalid error?

Thanks!



More information about the code-quality mailing list