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.

useless_super_delegation_py3.py 639B

12345678910111213141516
  1. # pylint: disable=missing-docstring, no-member, unused-argument, invalid-name,unused-variable
  2. # pylint: disable=too-few-public-methods
  3. class NotUselessSuper(object):
  4. def not_passing_keyword_only(self, first, *, second):
  5. return super(NotUselessSuper, self).not_passing_keyword_only(first)
  6. def passing_keyword_only_with_modifications(self, first, *, second):
  7. return super(NotUselessSuper, self).passing_keyword_only_with_modifications(
  8. first, second + 1)
  9. class UselessSuper(object):
  10. def useless(self, *, first): # [useless-super-delegation]
  11. super(UselessSuper, self).useless(first=first)