summaryrefslogtreecommitdiff
path: root/sphinx/theming.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-20 21:31:03 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-21 00:09:52 +0900
commit1ee744208d3fa576f50218a8648d347701dd0016 (patch)
treead4cbd6d75e1837053e7ca313d6e770dd981b54a /sphinx/theming.py
parente24779b1ccd2ff88ab44d4db632e3784f4563f22 (diff)
downloadsphinx-git-1ee744208d3fa576f50218a8648d347701dd0016.tar.gz
Fix mypy violations
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r--sphinx/theming.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py
index c9fe904ea..e0b56d1aa 100644
--- a/sphinx/theming.py
+++ b/sphinx/theming.py
@@ -37,6 +37,7 @@ THEMECONF = 'theme.conf'
def extract_zip(filename, targetdir):
+ # type: (unicode, unicode) -> None
ensuredir(targetdir)
with ZipFile(filename) as archive: # type: ignore
@@ -114,7 +115,7 @@ class Theme(object):
if self.base:
options = self.base.get_options()
else:
- options = {} # type: Dict[unicode, Any]
+ options = {}
try:
options.update(self.config.items('options'))
@@ -197,7 +198,7 @@ class HTMLThemeFactory(object):
except ImportError:
pass
- def load_external_themes(self, name):
+ def load_external_theme(self, name):
# type: (unicode) -> None
for entry_point in pkg_resources.iter_entry_points('sphinx_themes'):
target = entry_point.load()
@@ -216,7 +217,7 @@ class HTMLThemeFactory(object):
def find_themes(self, theme_path):
# type: (unicode) -> Dict[unicode, unicode]
- themes = {}
+ themes = {} # type: Dict[unicode, unicode]
if not path.isdir(theme_path):
return themes