mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
27 lines
527 B
HTML
27 lines
527 B
HTML
<html>
|
|
<body>
|
|
<p>Reports missing and empty docstrings.</p>
|
|
<p><b>Example of a missing docstring</b></p>
|
|
<pre><code>
|
|
def demo(a):
|
|
c = a ** 2
|
|
</code></pre>
|
|
<p><b>Example of an empty docstring</b></p>
|
|
<pre><code>
|
|
def demo(a):
|
|
"""
|
|
"""
|
|
c = a ** 2
|
|
</code></pre>
|
|
<p>When the quick-fix is applied, the code fragments change to:</p>
|
|
<pre><code>
|
|
def demo(a):
|
|
"""
|
|
|
|
:param a:
|
|
"""
|
|
c = a ** 2
|
|
</code></pre>
|
|
<p>You need to provide some details about the parameter in the generated template.</p>
|
|
</body>
|
|
</html> |