PEP 287 - reStructuredText docstrings examples
Links
PEP 287 - reStructuredText Docstring Format
Handsdown API Index / Examples / PEP 287 - reStructuredText docstrings examples
Auto-generated documentation for examples.rst_docstrings module.
RSTExample
Show source in rst_docstrings.py:10
Signature
RSTExample.reference
Show source in rst_docstrings.py:11
This is a reference for RST-style
docstrings. Check source
code
to see how it works.
Arguments
my_param
- Parameter exampletyped_param
int - Typed parameter example
Returns
Type: str Return statement
Raises
ValueError
- Raises example
Code example
Signature
RSTExample.replace_test
Show source in rst_docstrings.py:40
Check if all attribute attributes
, data
and exception Exception
in
class RSTExample and class RSTExample look good.
Signature
RSTExample.rtype_test
Show source in rst_docstrings.py:31
:rtype:
test.
Returns
Return statement Type: bool