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.

old_style_class_py27.py 507B

123456789101112131415161718
  1. """ Tests for old style classes. """
  2. # pylint: disable=no-init, too-few-public-methods, invalid-name, metaclass-assignment
  3. class Old: # [old-style-class]
  4. """ old style class """
  5. class Child(Old):
  6. """ Old style class, but don't emit for it. """
  7. class NotOldStyle2:
  8. """ Because I have a metaclass at class level. """
  9. __metaclass__ = type
  10. # pylint: disable=redefined-builtin
  11. __metaclass__ = type
  12. class NotOldStyle:
  13. """ Because I have a metaclass at global level. """