summary refs log tree commit diff
path: root/synapse/config/emailconfig.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-12 15:21:12 +0000
committerErik Johnston <erik@matrix.org>2019-12-12 15:21:12 +0000
commit495005360cd37009818ad4214a5462c3dd0b15a6 (patch)
tree4028a737f4294313814469b5798ed7cc9f81813c /synapse/config/emailconfig.py
parentNewsfile (diff)
downloadsynapse-495005360cd37009818ad4214a5462c3dd0b15a6.tar.xz
Bump version of mypy
Diffstat (limited to 'synapse/config/emailconfig.py')
-rw-r--r--synapse/config/emailconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py
index 18f42a87f9..35756bed87 100644
--- a/synapse/config/emailconfig.py
+++ b/synapse/config/emailconfig.py
@@ -21,6 +21,7 @@ from __future__ import print_function
 import email.utils
 import os
 from enum import Enum
+from typing import Optional
 
 import pkg_resources
 
@@ -101,7 +102,7 @@ class EmailConfig(Config):
                 # both in RegistrationConfig and here. We should factor this bit out
                 self.account_threepid_delegate_email = self.trusted_third_party_id_servers[
                     0
-                ]
+                ]  # type: Optional[str]
                 self.using_identity_server_from_trusted_list = True
             else:
                 raise ConfigError(