1
# pylint: disable-msg=R0903
3
False positive case of E1101:
5
The error is triggered when the attribute set in the base class is
6
modified with augmented assignment in a derived class.
8
http://www.logilab.org/ticket/9588
12
class BaseClass(object):
18
class FalsePositiveClass(BaseClass):
19
"The first derived class which triggers the false positive"
21
"Augmented assignment triggers E1101."
22
BaseClass.__init__(self)
26
"Consequently this also triggers E1101."
29
class NegativeClass(BaseClass):
30
"The second derived class, which does not trigger the error E1101"
32
"Ordinary assignment is OK."
33
BaseClass.__init__(self)
34
self.e1101 = self.e1101 + 1