Skip to content

Commit

Permalink
Add regression test for no-member of properties. Close #870
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Dec 4, 2019
1 parent 1688894 commit 4b31fc5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/functional/r/regression_property_no_member_870.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# pylint: disable=too-few-public-methods,invalid-name,missing-docstring
# https://github.com/PyCQA/pylint/issues/870

class X:
def __init__(self, val=None):
self._val = val
@property
def val(self):
return self._val
@val.setter
def val(self, value):
self._val = value

if __name__ == '__main__':
print(X([]).val.append)

0 comments on commit 4b31fc5

Please sign in to comment.