third_party.pylibs.pylint.src/pylint/test/input/func_unused_import_py30.py

21 lines
470 B
Python
Raw Normal View History

"""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 """