diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-12-04 14:24:01 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-12-04 14:24:01 +0100 |
commit | 1e84b02c9eedf051db556df8e4966800a8c6d841 (patch) | |
tree | f313a754f614f032a625834d51e978c46d61f00a /tests/functional/r | |
parent | 4b31fc53a65aa2a97e7ca37309b689ca13c09b0b (diff) | |
download | pylint-git-1e84b02c9eedf051db556df8e4966800a8c6d841.tar.gz |
Add regression test for no-member of properties. Close #844
Diffstat (limited to 'tests/functional/r')
-rw-r--r-- | tests/functional/r/regression_property_no_member_844.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/r/regression_property_no_member_844.py b/tests/functional/r/regression_property_no_member_844.py new file mode 100644 index 000000000..2c919fe2f --- /dev/null +++ b/tests/functional/r/regression_property_no_member_844.py @@ -0,0 +1,18 @@ +# pylint: disable=missing-docstring,too-few-public-methods,invalid-overridden-method +# https://github.com/PyCQA/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(Child, self).thing + '!' + + +print(Child().thing) |