Search notes:

Python: docstring

Some conventions for docstrings include:

See also

The __annotations__ dunder.
Docstrings in function definitions
The module doctest finds code in a module's docstrings and executes them, typically for testing purposes.
Docstrings are removed with the -OO command line option.

Index