Remove 'Duplicated signature' warning for properties
Brought to you by:
fabioz
Pydev extensions produce a "Duplicated signature" warning when presented with the following code, taken directly from the Python documentation:
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
Currently I have to suppress this warning globally, it would be nice if this error/warning was suppressed just for properties - even a quick hack would do, such as matching the first nonempty line above the redefinition against something like r"^@.*\.\s*(setter|deleter)\s*(#.*)?$".
While at that, since you will be checking whether it's a property, could you *not* add '()' at the end of property name? Auto-completion treats property as method now.