gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / input / func_unused_import_py30.py @ 745
History | View | Annotate | Download (471 Bytes)
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 |
|
10 |
class Meta(metaclass=abc.ABCMeta): |
11 |
""" Test """
|
12 |
def __init__(self): |
13 |
self.data = sys.executable
|
14 |
self.test = abc
|
15 |
|
16 |
class Meta2(metaclass=ABCMeta): |
17 |
""" Test """
|
18 |
|
19 |
class Meta3(metaclass=SomethingElse): |
20 |
""" test """
|
21 |
|