diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-08 08:31:59 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-08 12:38:42 +0300 |
commit | 6fa0262802a09050e09445c9fd630c69b5ad1204 (patch) | |
tree | a2ad8f7849540d1b027e0b99d9913394b23c58d8 /sphinx/util/png.py | |
parent | 81eb101e9f8fcee1c439ee0dd501d135eced01c6 (diff) |
Fix mypy violations
Diffstat (limited to 'sphinx/util/png.py')
-rw-r--r-- | sphinx/util/png.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/util/png.py b/sphinx/util/png.py index 476d45ccd..1543e4a5b 100644 --- a/sphinx/util/png.py +++ b/sphinx/util/png.py @@ -22,6 +22,7 @@ IEND_CHUNK = b'\x00\x00\x00\x00IEND\xAE\x42\x60\x82' def read_png_depth(filename): + # type: (unicode) -> int """Read the special tEXt chunk indicating the depth from a PNG file.""" with open(filename, 'rb') as f: f.seek(- (LEN_IEND + LEN_DEPTH), 2) @@ -34,6 +35,7 @@ def read_png_depth(filename): def write_png_depth(filename, depth): + # type: (unicode, int) -> None """Write the special tEXt chunk indicating the depth to a PNG file. The chunk is placed immediately before the special IEND chunk. |