Explorar o código

get sphinx to properly interpret type hints

Malte Kraus %!s(int64=8) %!d(string=hai) anos
pai
achega
5ad7b0cc6f
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      doc/conf.py
  2. 1 0
      requirements.txt

+ 1 - 0
doc/conf.py

@@ -32,6 +32,7 @@ sys.path.insert(0, os.path.split(os.path.split(__file__)[0])[0])
 extensions = [
     'sphinx.ext.autodoc',
     'sphinx.ext.autosummary',
+    'sphinx_autodoc_typehints',
     'sphinx.ext.doctest',
     'sphinx.ext.coverage',
 ]

+ 1 - 0
requirements.txt

@@ -17,6 +17,7 @@ requests==2.13.0
 six==1.10.0
 snowballstemmer==1.2.1
 Sphinx==1.5.3
+sphinx-autodoc-typehints==1.1.0
 treelib==1.3.5
 urwid==1.3.1
 Werkzeug==0.12