logilab-astng #23986 False positive: E1101 [validation pending]
This is pylint 1.9 on ubuntu lucid. I am inheriting from defaultdict, and in the implementation of my class I use defaultdict methods - they are all declared as non-existant. Example: from collections import defaultdict class IntDict(defaultdict): def __init__(self): defaultdict.__init__(self, int) def copy(self): result = IntDict() result.update(self) return result | |
priority | normal |
---|---|
type | bug |
done in | 0.24.0 |
load left | 0.000 |
closed by | <not specified> |
similar entities
- logilab-astng #4294 E1102 false positive (not callable)
- Introducing the pylint-brain project
- logilab-astng #72355 E1101 false positive for collections.deque descendants
- pylint #37843 pylint get false E1101 on crcmod.Crc call
- pylint #18778 W0613 false positive on overridden dictionary methods
[see all]
Comments
-
2010/06/02 14:31, written by anon
-
2010/08/03 01:34, written by anon
-
2010/08/03 07:27, written by sthenault
-
2011/02/15 18:52, written by fabianpijcke
add commentSame kind of false positive here :
I'm using pyserial-2.5_rc2 with python 2.6.5 on Archlinux
import serial
a = serial.PARITY_NONE
E: 5: Module 'serial' has no 'PARITY_NONE' member
This is obviously false as I'm running this test successfully on my machine.
I get lots of these errors working with Google App Engine. It's pretty frustrating because they overwhelm warnings about real problems. When I do:
I get an error like:
But of course it does. This seems to happen in cases where the module has a __init__.py file with contents like:
and also a deferred.py file:
hum pylint should be able to follow such things. May be the pb is related
to relative import (eg 'from defererred import *' instead of
'from google.appengine.ext.deferred import *').
You can file a specific ticket for this pb.
I don't know if this is pertinent, but I get a E1101 false positive when using "self.__dict__['mykey'] = 'myvalue'" in place of self.mykey = 'myvalue'.
Hope it could help ...