We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5b4e6 commit 391c13aCopy full SHA for 391c13a
docs/source/conf.py
@@ -192,3 +192,16 @@
192
193
# If true, `todo` and `todoList` produce output, else they produce nothing.
194
todo_include_todos = True
195
+
196
+# -- Type hints configs ------------------------------------------------------
197
198
+autodoc_typehints = "signature"
199
200
+# -- A patch that turns-off cross refs for type annotations ------------------
201
202
+import sphinx.domains.python
203
+from docutils import nodes
204
+from sphinx import addnodes
205
206
+# replaces pending_xref node with desc_type for type annotations
207
+sphinx.domains.python.type_to_xref = lambda t, e=None: addnodes.desc_type("", nodes.Text(t))
0 commit comments