Skip to content

Commit

Permalink
docs: enabled "Type hints (PEP 484) support for the Sphinx autodoc ex…
Browse files Browse the repository at this point in the history
…tension" (#421)

* Enabled "Type hints (PEP 484) support for the Sphinx autodoc extension"

* Add sphinx_autodoc_typehints to requirements-dev
  • Loading branch information
Hiromu Hota authored May 20, 2020
1 parent 79434aa commit 0dc064d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Unreleased_
-----------

Changed
^^^^^^^
* `@HiromuHota`_: Enabled "Type hints (PEP 484) support for the Sphinx autodoc extension."

0.8.2_ - 2020-04-28
-------------------

Expand Down
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx_autodoc_typehints",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pre-commit
pytest
sphinx
sphinx_rtd_theme
sphinx_autodoc_typehints

0 comments on commit 0dc064d

Please sign in to comment.