@@ -122,18 +122,19 @@ def foo(a, b):
122122The parser accepts a few options:
123123
124124- ` ignore_init_summary ` : Ignore the first line in ` __init__ ` methods' docstrings.
125- Useful when merging ` __init__ ` docstring into class' docstrings
125+ Useful when merging ` __init__ ` docstring into class' docstrings. Default: false.
126126 with mkdocstrings-python's [ ` merge_init_into_class ` ] [ merge_init ] option. Default: false.
127- - ` trim_doctest_flags ` : Remove the [ doctest flags] [ ] written as comments in ` pycon ` snippets within a docstring.
128- These flags are used to alter the behavior of [ doctest] [ ] when testing docstrings,
129- and should not be visible in your docs. Default: true.
130- - ` warn_unknown_params ` : Warn about parameters documented in docstrings that do not appear in the signature. Default: true.
131127- ` returns_multiple_items ` : Parse [ Returns sections] ( #returns ) as if they contain multiple items.
132128 It means that continuation lines must be indented. Default: true.
133129- ` returns_named_value ` : Whether to parse ` thing: Description ` in [ Returns sections] ( #returns ) as a name and description,
134130 rather than a type and description. When true, type must be wrapped in parentheses: ` (int): Description. ` .
135- When false, parentheses are optional but the items cannot be named: ` int: Description ` .
136-
131+ When false, parentheses are optional but the items cannot be named: ` int: Description ` . Default: true.
132+ - ` returns_type_in_property_summary ` : Whether to parse the return type of properties
133+ at the beginning of their summary: ` str: Summary of the property ` . Default: false.
134+ - ` trim_doctest_flags ` : Remove the [ doctest flags] [ ] written as comments in ` pycon ` snippets within a docstring.
135+ These flags are used to alter the behavior of [ doctest] [ ] when testing docstrings,
136+ and should not be visible in your docs. Default: true.
137+ - ` warn_unknown_params ` : Warn about parameters documented in docstrings that do not appear in the signature. Default: true.
137138
138139#### Attributes
139140
@@ -1575,21 +1576,3 @@ Returns | ✅ | ✅ | [❌][issue-xref-sphinx-returns]
15751576[ issue-xref-sphinx-yields ] : https://github.com/mkdocstrings/griffe/issues/26
15761577[ issue-xref-numpy-func-cls ] : https://github.com/mkdocstrings/griffe/issues/200
15771578[ issue-xref-google-func-cls ] : https://github.com/mkdocstrings/griffe/issues/199
1578-
1579- ### Parsing options
1580-
1581- Option | Description | Google | Numpy | Sphinx
1582- -------------------------- | ----------------------------------------- | ------ | ----- | ------
1583- ` ignore_init_summary ` | Ignore ` __init__ ` summary. | ✅ | ✅ | [ ❌] [ issue-ignore-init-summary-sphinx ]
1584- ` trim_doctest_flags ` | Trim doctest flags. | ✅ | ✅ | [ ❌] [ issue-trim-doctest-flags-sphinx ]
1585- ` warn_unknown_params ` | Warn about unknown params. | ✅ | ✅ | [ ❌] [ issue-warn-unknown-params-sphinx ]
1586- ` allow_section_blank_line ` | Allow blank line in sections. | / | ✅ | /
1587- ` returns_multiple_items ` | Parse multiple items in Returns sections. | ✅ | / | /
1588-
1589- [ issue-ignore-init-summary-sphinx ] : https://github.com/mkdocstrings/griffe/issues/45
1590- [ issue-trim-doctest-flags-sphinx ] : https://github.com/mkdocstrings/griffe/issues/49
1591- [ issue-warn-unknown-params-sphinx ] : https://github.com/mkdocstrings/griffe/issues/64
1592-
1593- [ merge_init ] : https://mkdocstrings.github.io/python/usage/configuration/docstrings/#merge_init_into_class
1594- [ doctest flags ] : https://docs.python.org/3/library/doctest.html#option-flags
1595- [ doctest ] : https://docs.python.org/3/library/doctest.html#module-doctest
0 commit comments