mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
25 lines
621 B
HTML
25 lines
621 B
HTML
<html>
|
|
<body>
|
|
<p>Reports problems with the arguments of <code>property()</code> and functions
|
|
annotated with <code>@property</code>.</p>
|
|
<pre><code>
|
|
class C:
|
|
@property
|
|
def abc(self): # Getter should return or yield something
|
|
pass
|
|
|
|
@abc.setter
|
|
def foo(self, value): # Names of function and decorator don't match
|
|
pass
|
|
|
|
@abc.setter
|
|
def abc(self, v1, v2): # Setter signature should be (self, value)
|
|
pass
|
|
|
|
@abc.deleter
|
|
def abc(self, v1): # Delete signature should be (self)
|
|
pass
|
|
</code></pre>
|
|
<p>A quick-fix offers to update parameters.</p>
|
|
</body>
|
|
</html> |