diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-13 23:29:38 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-07-13 23:46:17 +0900 |
commit | 0c48a28ad7216ee064b0db564745d749c049bfd5 (patch) | |
tree | 2bc2f13992c930c00bd3b60ea3e2c27c31e659cd /sphinx/project.py | |
parent | 0bc530f1b7b3303e0f53e42010b629d67e79b835 (diff) | |
download | sphinx-git-0c48a28ad7216ee064b0db564745d749c049bfd5.tar.gz |
Fix type annotation for python 3.5.1
Diffstat (limited to 'sphinx/project.py')
-rw-r--r-- | sphinx/project.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/project.py b/sphinx/project.py index 8e2e7330a..81d2b43e0 100644 --- a/sphinx/project.py +++ b/sphinx/project.py @@ -9,7 +9,6 @@ """ import os -from typing import TYPE_CHECKING from sphinx.locale import __ from sphinx.util import get_matching_files @@ -17,9 +16,11 @@ from sphinx.util import logging from sphinx.util.matching import compile_matchers from sphinx.util.osutil import SEP, relpath -if TYPE_CHECKING: +if False: + # For type annotation from typing import Dict, List, Set # NOQA + logger = logging.getLogger(__name__) EXCLUDE_PATHS = ['**/_sources', '.#*', '**/.#*', '*.lproj/**'] |