third_party.pylibs.pylint.src/pylint/test/input/func_unused_import_py30.py
Mike Frysinger f63bacb373 format: check for & warn about trailing newlines
The new tests also catch a lot of files in the pylint code base
that have trailing newlines, so clean them all up as well.

Close #682
2016-01-09 22:42:37 +02:00

21 lines
470 B
Python

"""check unused import for metaclasses
"""
# pylint: disable=too-few-public-methods,wrong-import-position,ungrouped-imports
__revision__ = 1
import abc
import sys
from abc import ABCMeta
from abc import ABCMeta as SomethingElse
class Meta(metaclass=abc.ABCMeta):
""" Test """
def __init__(self):
self.data = sys.executable
self.test = abc
class Meta2(metaclass=ABCMeta):
""" Test """
class Meta3(metaclass=SomethingElse):
""" test """