summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_property_no_member_844.py
blob: 279d7b250682cc3a2b752e4ee23e1f9316890774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# pylint: disable=missing-docstring,too-few-public-methods,invalid-overridden-method
# https://github.com/pylint-dev/pylint/issues/844
class Parent:
    def __init__(self):
        self.__thing = 'foo'

    @property
    def thing(self):
        return self.__thing


class Child(Parent):
    @Parent.thing.getter
    def thing(self):
        return super().thing + '!'


print(Child().thing)