mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 08:33:42 +00:00
39 lines
746 B
Python
39 lines
746 B
Python
|
# pylint: disable-msg=R0903
|
||
|
"""test for __init__ not called
|
||
|
"""
|
||
|
|
||
|
__revision__ = '$Id: func_w0231.py,v 1.3 2004-09-29 08:35:13 syt Exp $'
|
||
|
|
||
|
class AAAA:
|
||
|
"""ancestor 1"""
|
||
|
|
||
|
def __init__(self):
|
||
|
print 'init', self
|
||
|
|
||
|
class BBBB:
|
||
|
"""ancestor 2"""
|
||
|
|
||
|
def __init__(self):
|
||
|
print 'init', self
|
||
|
|
||
|
class CCCC:
|
||
|
"""ancestor 3"""
|
||
|
|
||
|
|
||
|
class ZZZZ(AAAA, BBBB, CCCC):
|
||
|
"""derived class"""
|
||
|
|
||
|
def __init__(self):
|
||
|
AAAA.__init__(self)
|
||
|
|
||
|
class NewStyleA(object):
|
||
|
"""new style class"""
|
||
|
def __init__(self):
|
||
|
super(NewStyleA, self).__init__()
|
||
|
print 'init', self
|
||
|
|
||
|
class NewStyleB(NewStyleA):
|
||
|
"""derived new style class"""
|
||
|
def __init__(self):
|
||
|
super(NewStyleB, self).__init__()
|