Commit 660ab39
committed
docs(conf): Use signature-only typehints to eliminate RST conflicts
why: sphinx-autodoc-typehints was injecting :type: and :rtype: directives
into docstrings at runtime, causing "Unexpected indentation" errors due to
RST field list parsing conflicts with Napoleon-processed docstrings.
what:
- Change autodoc_typehints from "description" to "signature"
- Set always_document_param_types = False to disable param type injection
- Set typehints_document_rtype = False to disable return type injection
- Type hints are now visible in function signatures only
This eliminates all 64 anonymous "Unexpected indentation" errors while
maintaining type documentation in the API reference.1 parent b9bfae2 commit 660ab39
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
0 commit comments