summaryrefslogtreecommitdiff
path: root/sphinx/ext/githubpages.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-19 21:22:44 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-19 23:12:45 +0900
commitb6c2ba0d57c8b06941f4c60465c2763c5de123f1 (patch)
tree9ea78459629ac86d7a45023c7cd406338f954128 /sphinx/ext/githubpages.py
parent10991cdf671cb1dc4a7cdd4eb6efdea08c968ce3 (diff)
downloadsphinx-git-b6c2ba0d57c8b06941f4c60465c2763c5de123f1.tar.gz
Use typing.TYPE_CHECKING
Diffstat (limited to 'sphinx/ext/githubpages.py')
-rw-r--r--sphinx/ext/githubpages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/githubpages.py b/sphinx/ext/githubpages.py
index bd7061fb7..f97c810f8 100644
--- a/sphinx/ext/githubpages.py
+++ b/sphinx/ext/githubpages.py
@@ -10,11 +10,11 @@
"""
import os
+from typing import TYPE_CHECKING
import sphinx
-if False:
- # For type annotation
+if TYPE_CHECKING:
from typing import Any, Dict # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.environment import BuildEnvironment # NOQA