Skip to content

Commit

Permalink
Type Hints for Trainer (#912)
Browse files Browse the repository at this point in the history
* typehints for trainer 

fix type links in docs


fix types in docs


type hints for trainer methods


fix fit docs


switch to comments


readability


added sphinx typehints extension


wip


remove typehints from docstring


more type annotations


fix spaces

* Update trainer.py

Co-authored-by: William Falcon <waf2107@columbia.edu>
  • Loading branch information
Adrian Wälchli and williamFalcon authored Feb 23, 2020
1 parent e05586c commit da2f11a
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 95 deletions.
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ docutils
sphinxcontrib-fulltoc
sphinxcontrib-mockautodoc
git+https://github.com/PytorchLightning/lightning_sphinx_theme.git
# pip_shims
# pip_shims
sphinx-autodoc-typehints
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
'sphinx.ext.autosectionlabel',
# 'm2r',
'nbsphinx',
'sphinx_autodoc_typehints',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
Loading

0 comments on commit da2f11a

Please sign in to comment.