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

41 lines
714 B
HTML

<html>
<body>
<p>Reports cases when not all abstract properties or methods are defined in
a subclass.</p>
<p><b>Example:</b></p>
<pre><code>
from abc import abstractmethod, ABC
class Figure(ABC):
@abstractmethod
def do_figure(self):
pass
class Triangle(Figure):
def do_triangle(self):
pass
</code></pre>
<p>When the quick-fix is applied, the IDE implements an abstract method for the <code>Triangle</code> class:</p>
<pre><code>
from abc import abstractmethod, ABC
class Figure(ABC):
@abstractmethod
def do_figure(self):
pass
class Triangle(Figure):
def do_figure(self):
pass
def do_triangle(self):
pass
</code></pre>
</body>
</html>