mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
f63bacb373
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
21 lines
470 B
Python
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 """
|