Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_noerror_object_as_class_attribute.py 473B

123456789101112131415161718
  1. # pylint: disable=R0903
  2. """Test case for the problem described below :
  3. - A class extends 'object'
  4. - This class defines its own __init__()
  5. * pylint will therefore check that baseclasses' init()
  6. are called
  7. - If this class defines an 'object' attribute, then pylint
  8. will use this new definition when trying to retrieve
  9. object.__init__()
  10. """
  11. __revision__ = None
  12. class Statement(object):
  13. """ ... """
  14. def __init__(self):
  15. pass
  16. object = None