Skip to content

Commit 6f8e9d7

Browse files
Adrian WälchliwilliamFalcon
authored andcommitted
Type Hints for Trainer (Lightning-AI#912)
* 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 <[email protected]>
1 parent e2a20f0 commit 6f8e9d7

File tree

3 files changed

+113
-95
lines changed

3 files changed

+113
-95
lines changed

docs/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ docutils
77
sphinxcontrib-fulltoc
88
sphinxcontrib-mockautodoc
99
git+https://github.com/PytorchLightning/lightning_sphinx_theme.git
10-
# pip_shims
10+
# pip_shims
11+
sphinx-autodoc-typehints

docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
'sphinx.ext.autosectionlabel',
8787
# 'm2r',
8888
'nbsphinx',
89+
'sphinx_autodoc_typehints',
8990
]
9091

9192
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)