diff options
Diffstat (limited to 'sphinx/util/images.py')
-rw-r--r-- | sphinx/util/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/images.py b/sphinx/util/images.py index 568682b37..396cb6161 100644 --- a/sphinx/util/images.py +++ b/sphinx/util/images.py @@ -54,7 +54,7 @@ def get_image_size(filename: str) -> Tuple[int, int]: def guess_mimetype_for_stream(stream: IO, default: str = None) -> str: - imgtype = imghdr.what(stream) # type: ignore + imgtype = imghdr.what(stream) if imgtype: return 'image/' + imgtype else: |