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.

return_in_init.py 441B

12345678910111213141516171819202122232425
  1. # pylint: disable=missing-docstring,too-few-public-methods
  2. class MyClass(object):
  3. def __init__(self): # [return-in-init]
  4. return 1
  5. class MyClass2(object):
  6. """dummy class"""
  7. def __init__(self):
  8. return
  9. class MyClass3(object):
  10. """dummy class"""
  11. def __init__(self):
  12. return None
  13. class MyClass5(object):
  14. """dummy class"""
  15. def __init__(self):
  16. self.callable = lambda: (yield None)