aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/p/property_affectation_py26.py
blob: 323cf2d05b23406c82d7256719f737454932ba9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# pylint: disable=too-few-public-methods, useless-object-inheritance
"""
Simple test case for an annoying behavior in pylint.
"""

__revision__ = 'pouet'

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

    def __init__(self):
        self._thing = None

    @property
    def myattr(self):
        """Getter for myattr"""
        return self._thing

    @myattr.setter
    def myattr(self, value):
        """Setter for myattr."""
        self._thing = value

Test().myattr = 'grou'