diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-05-07 08:09:54 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-05-07 08:28:41 +0300 |
commit | 579a79660e843cd86278832c9aad3fec8f8a5fb3 (patch) | |
tree | 8c8054180b4ec2a0cf05c784add2e7d85de7d406 /sphinx/util/fileutil.py | |
parent | 3b69c51897fcaea5db573e7c25ce56c03ebac5a7 (diff) |
Update type annotations for new mypy
Diffstat (limited to 'sphinx/util/fileutil.py')
-rw-r--r-- | sphinx/util/fileutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py index 772e41331..04fd338b7 100644 --- a/sphinx/util/fileutil.py +++ b/sphinx/util/fileutil.py @@ -51,7 +51,7 @@ def copy_asset_file(source, destination, context=None, renderer=None): if destination.lower().endswith('_t'): destination = destination[:-2] with codecs.open(destination, 'w', encoding='utf-8') as fdst: # type: ignore - fdst.write(renderer.render_string(fsrc.read(), context)) # type: ignore + fdst.write(renderer.render_string(fsrc.read(), context)) else: copyfile(source, destination) |