summaryrefslogtreecommitdiff
path: root/sphinx/ext/githubpages.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/ext/githubpages.py
parent498fa379efe5b6b106c8d3eb56041164cdc8bab3 (diff)
downloadsphinx-git-dc2b153835af985c1bd940aa4116b78bf248b6e0.tar.gz
Update type annotations
Diffstat (limited to 'sphinx/ext/githubpages.py')
-rw-r--r--sphinx/ext/githubpages.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/ext/githubpages.py b/sphinx/ext/githubpages.py
index b267b1740..bd7061fb7 100644
--- a/sphinx/ext/githubpages.py
+++ b/sphinx/ext/githubpages.py
@@ -13,13 +13,21 @@ import os
import sphinx
+if False:
+ # For type annotation
+ from typing import Any, Dict # NOQA
+ from sphinx.application import Sphinx # NOQA
+ from sphinx.environment import BuildEnvironment # NOQA
+
def create_nojekyll(app, env):
+ # type: (Sphinx, BuildEnvironment) -> None
if app.builder.format == 'html':
path = os.path.join(app.builder.outdir, '.nojekyll')
open(path, 'wt').close()
def setup(app):
+ # type: (Sphinx) -> Dict[unicode, Any]
app.connect('env-updated', create_nojekyll)
return {'version': sphinx.__display_version__, 'parallel_read_safe': True}