Files
openide/python/python-psi-impl/resources/inspectionDescriptions/PyDeprecationInspection.html
Louis Vignier 1869ec9da6 [codeInspection] Fix python inspection descriptions
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
2023-04-28 13:13:25 +00:00

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>