You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mkdocstrings/handlers/python/renderer.py
+3-1
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ class PythonRenderer(BaseRenderer):
70
70
"show_object_full_path": False,
71
71
"show_category_heading": False,
72
72
"show_if_no_docstring": False,
73
+
"show_signature": True,
73
74
"show_signature_annotations": False,
74
75
"separate_signature": False,
75
76
"line_length": 60,
@@ -91,7 +92,8 @@ class PythonRenderer(BaseRenderer):
91
92
**`show_root_members_full_path`** | `bool` | Show the full Python path of objects that are children of the root object (for example, classes in a module). When False, `show_object_full_path` overrides. | `False`
92
93
**`show_category_heading`** | `bool` | When grouped by categories, show a heading for each category. | `False`
93
94
**`show_if_no_docstring`** | `bool` | Show the object heading even if it has no docstring or children with docstrings. | `False`
94
-
**`show_signature_annotations`** | `bool` | Show the type annotations in methods and functions signatures. | `False`
95
+
**`show_signature`** | `bool` | Show method and function signatures. | `True`
96
+
**`show_signature_annotations`** | `bool` | Show the type annotations in method and function signatures. | `False`
95
97
**`separate_signature`** | `bool` | Whether to put the whole signature in a foldable code block below the heading. | `False`
96
98
**`line_length`** | `int` | Maximum line length when formatting code. | `60`
97
99
**`show_source`** | `bool` | Show the source code of this object. | `True`
0 commit comments