Skip to content

Commit 774988e

Browse files
committed
fix: Fix missing default for docstring_section_style option
1 parent 8fc8ea5 commit 774988e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mkdocstrings_handlers/python/renderer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class PythonRenderer(BaseRenderer):
7777
"group_by_category": True,
7878
"heading_level": 2,
7979
"members_order": Order.alphabetical.value,
80+
"docstring_section_style": "table",
8081
}
8182
"""The default rendering options.
8283
@@ -99,6 +100,7 @@ class PythonRenderer(BaseRenderer):
99100
**`group_by_category`** | `bool` | Group the object's children by categories: attributes, classes, functions, methods, and modules. | `True`
100101
**`heading_level`** | `int` | The initial heading level to use. | `2`
101102
**`members_order`** | `str` | The members ordering to use. Options: `alphabetical` - order by the members names, `source` - order members as they appear in the source file. | `alphabetical`
103+
**`docstring_section_style`** | `str` | The style used to render docstring sections. Options: `table`, `list`, `spacy`. | `table`
102104
""" # noqa: E501
103105

104106
def render(self, data: CollectorItem, config: dict) -> str: # noqa: D102 (ignore missing docstring)

0 commit comments

Comments
 (0)