mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
21 lines
621 B
HTML
21 lines
621 B
HTML
<html>
|
|
<body>
|
|
<p>Reports usages of Python functions, or methods that are marked as
|
|
deprecated and raise the <code>DeprecationWarning</code> or <code>PendingDeprecationWarning</code> warning.</p>
|
|
<p>Also, this inspection highlights usages of <code>abc.abstractstaticmethod</code>, <code>abc.abstractproperty</code>, and <code>abc.abstractclassmethod</code>
|
|
decorators.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class Foo:
|
|
@property
|
|
def bar(self):
|
|
import warnings
|
|
warnings.warn("this is deprecated", DeprecationWarning, 2)
|
|
return 5
|
|
|
|
|
|
foo = Foo()
|
|
print(foo.bar)
|
|
</code></pre>
|
|
</body>
|
|
</html> |