Skip to main content

docstring_sections_content()

The docstring sections, with generated sections for a dataclass’s fields

Usage

Source

docstring_sections_content()

Nothing is added when an authored Parameters or Attributes section already documents the fields. Otherwise the Parameter Attributes and Init Parameters sections go after the leading text and before the other sections.