summaryrefslogtreecommitdiff
path: root/sphinx/builders/htmlhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-15 16:45:17 +0900
committerGitHub <noreply@github.com>2019-06-15 16:45:17 +0900
commitf6dfab33d29cd389c791acf5821adf556df5ca17 (patch)
tree07ecbae0a006a51567648553cfaa1f03fe6cbdc4 /sphinx/builders/htmlhelp.py
parent8fd817d174aed3c6655190f904b89f6f7f2ec099 (diff)
parent5cf84a5505a6063b48e7fcc4d489259ade526912 (diff)
downloadsphinx-git-f6dfab33d29cd389c791acf5821adf556df5ca17.tar.gz
Merge branch '2.0' into refactor_todo2
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')