summaryrefslogtreecommitdiff
path: root/sphinx/builders/htmlhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-15 23:39:44 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-15 23:39:44 +0900
commit5d42659e3336329367c559c6d9be7b0bdfeb6687 (patch)
tree5d558a896aed0b403b5e8c5ecea0d85285fda34a /sphinx/builders/htmlhelp.py
parentaf50bfcdf66aa419df3a474c15e665371dd7baf5 (diff)
parentd2f0c8356850b07b7cd37a266cb5487a2e51c71c (diff)
downloadsphinx-git-5d42659e3336329367c559c6d9be7b0bdfeb6687.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r--sphinx/builders/htmlhelp.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py
index be365ef7e..7885acd08 100644
--- a/sphinx/builders/htmlhelp.py
+++ b/sphinx/builders/htmlhelp.py
@@ -10,20 +10,16 @@
"""
import warnings
+from typing import Any, Dict
from sphinxcontrib.htmlhelp import (
chm_locales, chm_htmlescape, HTMLHelpBuilder, default_htmlhelp_basename
)
+from sphinx.application import Sphinx
from sphinx.deprecation import RemovedInSphinx40Warning, deprecated_alias
-if False:
- # For type annotation
- from typing import Any, Dict # NOQA
- from sphinx.application import Sphinx # NOQA
-
-
deprecated_alias('sphinx.builders.htmlhelp',
{
'chm_locales': chm_locales,
@@ -34,8 +30,7 @@ deprecated_alias('sphinx.builders.htmlhelp',
RemovedInSphinx40Warning)
-def setup(app):
- # type: (Sphinx) -> Dict[str, Any]
+def setup(app: Sphinx) -> Dict[str, Any]:
warnings.warn('sphinx.builders.htmlhelp has been moved to sphinxcontrib-htmlhelp.',
RemovedInSphinx40Warning)
app.setup_extension('sphinxcontrib.htmlhelp')