| 1 | # pylint: disable=missing-docstring,too-few-public-methods,invalid-overridden-method |
| 2 | # https://github.com/pylint-dev/pylint/issues/844 |
| 3 | class Parent: |
| 4 | def __init__(self): |
| 5 | self.__thing = 'foo' |
| 6 | |
| 7 | @property |
| 8 | def thing(self): |
| 9 | return self.__thing |
| 10 | |
| 11 | |
| 12 | class Child(Parent): |
| 13 | @Parent.thing.getter |
| 14 | def thing(self): |
| 15 | return super().thing + '!' |
| 16 | |
| 17 | |
| 18 | print(Child().thing) |