gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / astroid / tests / testdata / python3 / data / clientmodule_test.py @ 745
History | View | Annotate | Download (800 Bytes)
1 |
""" docstring for file clientmodule.py """
|
---|---|
2 |
from data.suppliermodule_test import Interface as IFace, DoNothing |
3 |
|
4 |
class Toto: pass |
5 |
|
6 |
class Ancestor: |
7 |
""" Ancestor method """
|
8 |
__implements__ = (IFace,) |
9 |
|
10 |
def __init__(self, value): |
11 |
local_variable = 0
|
12 |
self.attr = 'this method shouldn\'t have a docstring' |
13 |
self.__value = value
|
14 |
|
15 |
def get_value(self): |
16 |
""" nice docstring ;-) """
|
17 |
return self.__value |
18 |
|
19 |
def set_value(self, value): |
20 |
self.__value = value
|
21 |
return 'this method shouldn\'t have a docstring' |
22 |
|
23 |
class Specialization(Ancestor): |
24 |
TYPE = 'final class'
|
25 |
top = 'class'
|
26 |
|
27 |
def __init__(self, value, _id): |
28 |
Ancestor.__init__(self, value)
|
29 |
self._id = _id
|
30 |
self.relation = DoNothing()
|
31 |
self.toto = Toto()
|
32 |
|