summaryrefslogtreecommitdiff
path: root/sphinx/builders/gettext.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-03-03 12:19:09 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-03-03 23:17:34 +0900
commit554199d30e418f72f215fae65924b47249d2544c (patch)
treefd952e21a8f4e9dabf91c5e3731dea3712ade006 /sphinx/builders/gettext.py
parent28b1aceefedbb9c3a12d6ba7c712df8ad5e98db8 (diff)
downloadsphinx-git-554199d30e418f72f215fae65924b47249d2544c.tar.gz
Upgrade to mypy-0.5
Diffstat (limited to 'sphinx/builders/gettext.py')
-rw-r--r--sphinx/builders/gettext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py
index fa0e1368d..a1eb5bae4 100644
--- a/sphinx/builders/gettext.py
+++ b/sphinx/builders/gettext.py
@@ -31,7 +31,7 @@ from sphinx.locale import pairindextypes
if False:
# For type annotation
- from typing import Any, Iterable, Tuple # NOQA
+ from typing import Any, Dict, Iterable, List, Set, Tuple # NOQA
from docutils import nodes # NOQA
from sphinx.util.i18n import CatalogInfo # NOQA
from sphinx.application import Sphinx # NOQA
@@ -258,7 +258,7 @@ class MessageCatalogBuilder(I18nBuilder):
version = self.config.version,
copyright = self.config.copyright,
project = self.config.project,
- ctime = datetime.fromtimestamp( # type: ignore
+ ctime = datetime.fromtimestamp(
timestamp, ltz).strftime('%Y-%m-%d %H:%M%z'),
)
for textdomain, catalog in status_iterator(iteritems(self.catalogs), # type: ignore