summary refs log tree commit diff
path: root/synapse/config/repository.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-26 12:12:14 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-26 12:12:14 +0000
commitfba32b84d28fd6018b698f5ee6738ad29347b216 (patch)
tree221d296c5c0764fc1720e29e4ea160e509fb2bda /synapse/config/repository.py
parentFix yields and copy instead of move push rules on room upgrade (#6144) (diff)
parentFix up some typechecking (#6150) (diff)
downloadsynapse-fba32b84d28fd6018b698f5ee6738ad29347b216.tar.xz
Fix up some typechecking (#6150)
Diffstat (limited to 'synapse/config/repository.py')
-rw-r--r--synapse/config/repository.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py

index 6db54a932d..c670789bab 100644 --- a/synapse/config/repository.py +++ b/synapse/config/repository.py
@@ -15,6 +15,7 @@ import os from collections import namedtuple +from typing import Dict, List from synapse.python_dependencies import DependencyException, check_requirements from synapse.util.module_loader import load_module @@ -61,7 +62,7 @@ def parse_thumbnail_requirements(thumbnail_sizes): Dictionary mapping from media type string to list of ThumbnailRequirement tuples. """ - requirements = {} + requirements = {} # type: Dict[str, List] for size in thumbnail_sizes: width = size["width"] height = size["height"] @@ -136,7 +137,7 @@ class ContentRepositoryConfig(Config): # # We don't create the storage providers here as not all workers need # them to be started. - self.media_storage_providers = [] + self.media_storage_providers = [] # type: List[tuple] for provider_config in storage_providers: # We special case the module "file_system" so as not to need to