summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-28 18:40:53 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-11-28 18:40:53 +0100
commit5e9c94313f6714a159993cefb488aca3326e3e66 (patch)
tree1e66203983b59a112b3cb34f18f7eb95e6ede1c4
parentb7dde0d7aac8dbaa4f47f9bfb03fdcf1f0b01c41 (diff)
downloadgitlab-5e9c94313f6714a159993cefb488aca3326e3e66.tar.gz
chore(docs): use builtin autodoc hints
-rw-r--r--docs/conf.py3
-rw-r--r--requirements-docs.txt1
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 3d94983..2a1b292 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -42,10 +42,11 @@ extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"ext.docstrings",
- "sphinx_autodoc_typehints", # must be loaded after napoleon modules
"sphinxcontrib.autoprogram",
]
+autodoc_typehints = "both"
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
diff --git a/requirements-docs.txt b/requirements-docs.txt
index a0de789..ecd9d93 100644
--- a/requirements-docs.txt
+++ b/requirements-docs.txt
@@ -4,4 +4,3 @@ myst-parser
sphinx==4.3.1
sphinx_rtd_theme
sphinxcontrib-autoprogram
-sphinx-autodoc-typehints==1.12.0