summaryrefslogtreecommitdiff
path: root/tests/functional/o/object_as_class_attribute.py
blob: 8e44abcb9dc136a632bd78040679df473a1bef6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# pylint: disable=too-few-public-methods
"""Test case for the problem described below :
 - A class extends 'object'
 - This class defines its own __init__()
   * pylint will therefore check that baseclasses' init()
     are called
 - If this class defines an 'object' attribute, then pylint
   will use this new definition when trying to retrieve
   object.__init__()
"""


class Statement:
    """ ... """
    def __init__(self):
        pass
    object = None