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.

method_hidden.py 346B

12345678910111213141516
  1. # pylint: disable=too-few-public-methods,print-statement
  2. """check method hidding ancestor attribute
  3. """
  4. from __future__ import print_function
  5. class Abcd(object):
  6. """dummy"""
  7. def __init__(self):
  8. self.abcd = 1
  9. class Cdef(Abcd):
  10. """dummy"""
  11. def abcd(self): # [method-hidden]
  12. """test
  13. """
  14. print(self)