It would be helpful if the following would be understood by pylint without issuing warnings: From http://docs.python.org/library/functions.html:
class C(object):
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
return self._x
@x.setter
def x(self, value):
self._x = value
@x.deleter
def x(self):
del self._x
| |
| priority | normal |
|---|---|
| type | enhancement |
| appeared in | <not specified> |
| done in | 0.25.1 |
| load left | 0.000 |
| closed by | #785:869685f9a22d |


#50459 update deprecated modules
Comments
-
2012/01/12 10:20, written by anon
| reply to this comment
-
2012/01/19 17:39, written by sthenault
| reply to this comment
(add comment)class C(object):
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
return self._x
@x.setter
@dummyDecorator
def x(self, value):
self._x = value
@x.deleter
@anotherDummyDecorator
def x(self):
del self._x
If you use a decorator ( Like @dummyDecorator or @anotherDummyDecorator ) between the function name and the properties decorator, the warnings are reissued.
please file a ticket for this pb