summaryrefslogtreecommitdiff
path: root/sphinx/apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-22 22:05:38 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-04 15:14:51 +0900
commitdc2b153835af985c1bd940aa4116b78bf248b6e0 (patch)
tree29383d6007d2f13c517ae4646e639362017aa9d4 /sphinx/apidoc.py
parent498fa379efe5b6b106c8d3eb56041164cdc8bab3 (diff)
downloadsphinx-git-dc2b153835af985c1bd940aa4116b78bf248b6e0.tar.gz
Update type annotations
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r--sphinx/apidoc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py
index 4e20fb7e4..4a0452044 100644
--- a/sphinx/apidoc.py
+++ b/sphinx/apidoc.py
@@ -15,7 +15,14 @@ from sphinx.deprecation import RemovedInSphinx20Warning
from sphinx.ext.apidoc import main as _main
+if False:
+ # For type annotation
+ from typing import Any # NOQA
+ from sphinx.application import Sphinx # NOQA
+
+
def main(*args, **kwargs):
+ # type: (Any, Any) -> None
warnings.warn(
'`sphinx.apidoc.main()` has moved to `sphinx.ext.apidoc.main()`.',
RemovedInSphinx20Warning,