diff --git a/docs/conf.py b/docs/conf.py index 0f954923..2e285257 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -23,6 +23,7 @@ "sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx_design", + "sphinx_autodoc_typehints", ] # List of patterns, relative to source directory, that match files and @@ -72,6 +73,7 @@ ("py:class", klass) for klass in [ "Path", + "pathlib._local.Path", "docutils.nodes.document", "docutils.nodes.Node", "docutils.nodes.Element", diff --git a/pyproject.toml b/pyproject.toml index b7b668e6..666f01e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,6 +86,7 @@ rtd = [ "sphinx-design", "sphinxcontrib-bibtex", "sympy", + "sphinx-autodoc-typehints", ] testing = [ "coverage>=6.4",