Files
openide/python/python-psi-impl/resources/inspectionDescriptions/PyOverridesInspection.html
T
2023-10-22 10:27:24 +00:00

25 lines
507 B
HTML

<html>
<body>
<p>Reports when a method decorated with @override doesn't have a matching method in its ancestor classes</p>
<p><b>Example:</b></p>
<pre><code>
from typing import override
class Parent:
def foo(self) -> int:
return 1
def bar(self, x: str) -> str:
return x
class Child(Parent):
@override
def foo(self) -> int:
return 2
@override # Missing super method for override function
def baz(self) -> int:
return 1
</code></pre>
</body>
</html>