summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-03-03 15:47:38 -0500
committerGitHub <noreply@github.com>2021-03-03 15:47:38 -0500
commit33a02f0f52a5cd793c0d123463d8a7a1e3f4f198 (patch)
tree0d53722ffb90376b2998bdf2f206e3b9d76da9d3 /synapse/server.py
parentSet X-Forwarded-Proto header when frontend-proxy proxies a request (#9539) (diff)
downloadsynapse-33a02f0f52a5cd793c0d123463d8a7a1e3f4f198.tar.xz
Fix additional type hints from Twisted upgrade. (#9518)
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 1d4370e0ba..afd7cd72e7 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -38,6 +38,7 @@ from typing import (
 
 import twisted.internet.base
 import twisted.internet.tcp
+from twisted.internet import defer
 from twisted.mail.smtp import sendmail
 from twisted.web.iweb import IPolicyForHTTPS
 
@@ -403,7 +404,7 @@ class HomeServer(metaclass=abc.ABCMeta):
         return RoomShutdownHandler(self)
 
     @cache_in_self
-    def get_sendmail(self) -> sendmail:
+    def get_sendmail(self) -> Callable[..., defer.Deferred]:
         return sendmail
 
     @cache_in_self