From 91921f68aa00f18e5bd954c9a5fc0cd42a1e92ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= Date: Mon, 4 Jan 2021 19:24:22 +0100 Subject: [PATCH] Add autodoc_typehints = "description" to doc/conf --- doc/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 7d642e9..13e5a69 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -115,6 +115,12 @@ intersphinx_mapping = { "https://docs.python.org/3/": None, } + +# mostly a no-op on the pybind parts for now: +# https://github.com/pybind/pybind11/issues/945 +autodoc_typehints = "description" + + def autodoc_process_signature(app, what, name, obj, options, signature, return_annotation): from inspect import ismethod -- GitLab