Skip to content

Commit

Permalink
Let Sphinx use type hints for signatures
Browse files Browse the repository at this point in the history
Part of #212
  • Loading branch information
goodmami committed Apr 18, 2019
1 parent e62694e commit 5ed7305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx.ext.napoleon',
'sphinx_autodoc_typehints',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# thanks: https://snarky.ca/clarifying-pep-518/
docs_require = [
'sphinx',
'sphinx-rtd-theme'
'sphinx-rtd-theme',
'sphinx_autodoc_typehints'
]
tests_require = [
'pytest'
Expand Down

0 comments on commit 5ed7305

Please sign in to comment.