PEP 257 - PEP 257 and Google docstrings examples
Links
PEP 257 - Docstring Conventions
Handsdown API Index / Examples / PEP 257 - PEP 257 and Google docstrings examples
Auto-generated documentation for examples.pep257_docstrings module.
ClassExample
Show source in pep257_docstrings.py:10
PEP257-style class example
Attributes
attr1
- Description ofattr1
.attr2
- Description ofattr2
.
You can use ~~~
to start a block as well
MD block example inside a tilde block
```python
This is not a codeblock, test inside tildes rendered as it is
```
Signature
ClassExample().method_example
Show source in pep257_docstrings.py:33
Summary line.
Extended description of method.
Examples
Examples should be written in doctest format, and should illustrate how to use the function.
Arguments
text
- Description of arg1*args
- Description of args**kwargs
- Description of kwargs
Returns
Description of return value
Signature
function_example
Show source in pep257_docstrings.py:66
Form a complex number.
Arguments
real
- the real part (default 0.0)imag
- the imaginary part (default 0.0)