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_property_affectation_py26.py 461B

123456789101112131415161718192021222324
  1. # pylint: disable=R0903
  2. """
  3. Simple test case for an annoying behavior in pylint.
  4. """
  5. __revision__ = 'pouet'
  6. class Test(object):
  7. """Smallest test case for reported issue."""
  8. def __init__(self):
  9. self._thing = None
  10. @property
  11. def myattr(self):
  12. """Getter for myattr"""
  13. return self._thing
  14. @myattr.setter
  15. def myattr(self, value):
  16. """Setter for myattr."""
  17. self._thing = value
  18. Test().myattr = 'grou'