Skip to content

Commit

Permalink
Add regression test for no-member of properties. Close #844
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Dec 4, 2019
1 parent 4b31fc5 commit 1e84b02
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/functional/r/regression_property_no_member_844.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 1e84b02

Please sign in to comment.