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_first_arg.py 723B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # pylint: disable=C0111, W0232
  2. """check for methods first arguments
  3. """
  4. __revision__ = 0
  5. class Obj(object):
  6. # C0202, classmethod
  7. def __new__(something):
  8. pass
  9. # C0202, classmethod
  10. def class1(cls):
  11. pass
  12. class1 = classmethod(class1)
  13. def class2(other):
  14. pass
  15. class2 = classmethod(class2)
  16. class Meta(type):
  17. # C0204, metaclass __new__
  18. def __new__(other, name, bases, dct):
  19. pass
  20. # C0203, metaclass method
  21. def method1(cls):
  22. pass
  23. def method2(other):
  24. pass
  25. # C0205, metaclass classmethod
  26. def class1(mcs):
  27. pass
  28. class1 = classmethod(class1)
  29. def class2(other):
  30. pass
  31. class2 = classmethod(class2)