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


class Test:
    """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'