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_unused_import_py30.py 470B

1234567891011121314151617181920
  1. """check unused import for metaclasses
  2. """
  3. # pylint: disable=too-few-public-methods,wrong-import-position,ungrouped-imports
  4. __revision__ = 1
  5. import abc
  6. import sys
  7. from abc import ABCMeta
  8. from abc import ABCMeta as SomethingElse
  9. class Meta(metaclass=abc.ABCMeta):
  10. """ Test """
  11. def __init__(self):
  12. self.data = sys.executable
  13. self.test = abc
  14. class Meta2(metaclass=ABCMeta):
  15. """ Test """
  16. class Meta3(metaclass=SomethingElse):
  17. """ test """