summaryrefslogtreecommitdiff
path: root/tests/functional/u/unused/unused_import_py30.py
blob: 2e79b5795634f29c452c09f7b3031d86b3c4ddea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""check unused import for metaclasses"""
# pylint: disable=too-few-public-methods,wrong-import-position,ungrouped-imports

import abc
import sys
from abc import ABCMeta
from abc import ABCMeta as SomethingElse  # [reimported]

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