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

24 lines
516 B
HTML

<html>
<body>
<p>Reports cases when overloads in regular Python files are placed after the implementation or when their signatures are
not compatible with the implementation.</p>
<p><b>Example:</b></p>
<pre><code>
from typing import overload
@overload
def foo(p1, p2): # Overload signature is not compatible with the implementation
pass
@overload
def foo(p1): # Overload signature is not compatible with the implementation
pass
def foo(p1, p2, p3):
print(p1, p2, p3)
</code></pre>
</body>
</html>