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_external_classmethod_crash.py 495B

123456789101112131415161718192021
  1. # pylint: disable=W0232,R0903,W0613
  2. """tagging a function as a class method cause a crash when checking for
  3. signature overriding
  4. """
  5. def fetch_config(mainattr=None):
  6. """return a class method"""
  7. def fetch_order(cls, attr, var):
  8. """a class method"""
  9. if attr == mainattr:
  10. return var
  11. return None
  12. fetch_order = classmethod(fetch_order)
  13. return fetch_order
  14. class Aaa(object):
  15. """hop"""
  16. fetch_order = fetch_config('A')
  17. __revision__ = None