Statistics
| Revision:

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_noerror_property_affectation_py26.py @ 745

History | View | Annotate | Download (461 Bytes)

1
# pylint: disable=R0903
2
"""
3
Simple test case for an annoying behavior in pylint.
4
"""
5

    
6
__revision__ = 'pouet'
7

    
8
class Test(object):
9
    """Smallest test case for reported issue."""
10

    
11
    def __init__(self):
12
        self._thing = None
13

    
14
    @property
15
    def myattr(self):
16
        """Getter for myattr"""
17
        return self._thing
18

    
19
    @myattr.setter
20
    def myattr(self, value):
21
        """Setter for myattr."""
22
        self._thing = value
23

    
24
Test().myattr = 'grou'