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

17 lines
432 B
HTML

<html>
<body>
<p>Reports <a href="https://docs.python.org/2/reference/datamodel.html#new-style-and-classic-classes">
classic style classes</a> usage. This inspection applies only to Python 2.
<p><b>Example:</b></p>
<pre><code>
class A:
pass
</code></pre>
<p>With quick-fixes provided by the IDE, this code fragment changes to:</p>
<pre><code>
class A(object):
def __init__(self):
pass
</code></pre>
</body>
</html>