summaryrefslogtreecommitdiff
path: root/pylint/test
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test')
-rw-r--r--pylint/test/functional/missing_docstring.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/pylint/test/functional/missing_docstring.py b/pylint/test/functional/missing_docstring.py
index 2392ebb..2d6f1fd 100644
--- a/pylint/test/functional/missing_docstring.py
+++ b/pylint/test/functional/missing_docstring.py
@@ -33,3 +33,22 @@ def __sizeof__():
def __mangled():
pass
+
+
+class Property(object):
+ """Don't warn about setters and deleters."""
+
+ def __init__(self):
+ self._value = None
+
+ @property
+ def test(self):
+ """Default docstring for setters and deleters."""
+
+ @test.setter
+ def test(self, value):
+ self._value = value
+
+ @test.deleter
+ def test(self):
+ pass