Add type annotations to the description instead of signature

This configures Sphinx autodoc to include the type annotations
along with the description of the function/method, instead of including
it into the signature.

Fix #8405
This commit is contained in:
Bruno Oliveira 2021-03-05 22:22:53 -03:00
parent 19a2f7425d
commit 7c792e96c6
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ release = ".".join(version.split(".")[:2])
# sys.path.insert(0, os.path.abspath('.'))
autodoc_member_order = "bysource"
autodoc_typehints = "description"
todo_include_todos = 1
# -- General configuration -----------------------------------------------------