diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-03 15:47:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 15:47:38 -0500 |
commit | 33a02f0f52a5cd793c0d123463d8a7a1e3f4f198 (patch) | |
tree | 0d53722ffb90376b2998bdf2f206e3b9d76da9d3 /synapse/server.py | |
parent | Set X-Forwarded-Proto header when frontend-proxy proxies a request (#9539) (diff) | |
download | synapse-33a02f0f52a5cd793c0d123463d8a7a1e3f4f198.tar.xz |
Fix additional type hints from Twisted upgrade. (#9518)
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 3 |
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 |