summary refs log tree commit diff
path: root/synapse/rest/media/v1/media_repository.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-23 11:38:22 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-23 11:38:22 +0000
commitfd3b31dc73706a80b9373672711240082b7bc6c3 (patch)
tree52372b6a39913f0ae44bd3a9264ba83912ac5de1 /synapse/rest/media/v1/media_repository.py
parentFix `/events/:event_id` deprecated API. (#6731) (diff)
parentFixup synapse.rest to pass mypy (#6732) (diff)
downloadsynapse-fd3b31dc73706a80b9373672711240082b7bc6c3.tar.xz
Fixup synapse.rest to pass mypy (#6732)
* commit 'b0a66ab83':
  Fixup synapse.rest to pass mypy (#6732)
Diffstat (limited to 'synapse/rest/media/v1/media_repository.py')
-rw-r--r--synapse/rest/media/v1/media_repository.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py

index bd9186fe50..490b1b45a8 100644 --- a/synapse/rest/media/v1/media_repository.py +++ b/synapse/rest/media/v1/media_repository.py
@@ -18,6 +18,7 @@ import errno import logging import os import shutil +from typing import Dict, Tuple from six import iteritems @@ -605,7 +606,7 @@ class MediaRepository(object): # We deduplicate the thumbnail sizes by ignoring the cropped versions if # they have the same dimensions of a scaled one. - thumbnails = {} + thumbnails = {} # type: Dict[Tuple[int, int, str], str] for r_width, r_height, r_method, r_type in requirements: if r_method == "crop": thumbnails.setdefault((r_width, r_height, r_type), r_method)