scanpydoc.definition_list_typed_field#
Prettier function parameter documentation.
This extension replaces the default PyTypedField
with a derivative DLTypedField
, which renders item items
(e.g. function parameters) as definition lists instead of simple paragraphs.
Functions#
Classes#
- class DLTypedField(name, names=(), typenames=(), label='', rolename='', typerolename='', can_collapse=False)[source]#
A reStructuredText field-list renderer that creates definition lists.
This style is more readable than cramming name, type, and description in one line.
The class is not intended to be used directly, but by using the extension, it will be used instead of the default
PyTypedField
.