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 / functional / method_hidden.py @ 745
History | View | Annotate | Download (346 Bytes)
1 |
# pylint: disable=too-few-public-methods,print-statement
|
---|---|
2 |
"""check method hidding ancestor attribute
|
3 |
"""
|
4 |
from __future__ import print_function |
5 |
|
6 |
class Abcd(object): |
7 |
"""dummy"""
|
8 |
def __init__(self): |
9 |
self.abcd = 1 |
10 |
|
11 |
class Cdef(Abcd): |
12 |
"""dummy"""
|
13 |
def abcd(self): # [method-hidden] |
14 |
"""test
|
15 |
"""
|
16 |
print(self)
|