Skip to content

Commit

Permalink
Change: Use sphinx directly for typehints in API docs
Browse files Browse the repository at this point in the history
Drop using the external plugin for typehints. This isn't necessary
anymore because sphinx comes with support for typehints nowadays.
  • Loading branch information
bjoernricks committed Aug 11, 2022
1 parent 4a0f170 commit f707efd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 29 deletions.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"sphinx.ext.autodoc",
"sphinx.ext.githubpages",
"sphinx.ext.napoleon",
"sphinx_autodoc_typehints",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -123,6 +122,11 @@

html_show_sourcelink = False

autodoc_typehints = "description"
autodoc_typehints_description_target = "documented"

autodoc_class_signature = "separated"


# -- Options for HTMLHelp output ---------------------------------------------

Expand Down
35 changes: 8 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ defusedxml = ">=0.6,<0.8"
coverage = "^6.4"
pylint = "^2.13"
sphinx = "^5.1.1"
sphinx-autodoc-typehints = "^1.19.1"
autohooks = ">=22.7.2"
autohooks-plugin-pylint = ">=21.6.0"
autohooks-plugin-black = ">=22.7.0"
Expand Down

0 comments on commit f707efd

Please sign in to comment.