summary refs log tree commit diff
path: root/synapse/appservice/api.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-10-09 11:35:11 -0400
committerGitHub <noreply@github.com>2020-10-09 11:35:11 -0400
commit1781bbe319ce24e8e468f0422519dc5823d8d420 (patch)
tree07dd536a9cdec4d42b939391b1ff8984e2dff43c /synapse/appservice/api.py
parentAllow modules to create and send events into rooms (#8479) (diff)
downloadsynapse-1781bbe319ce24e8e468f0422519dc5823d8d420.tar.xz
Add type hints to response cache. (#8507)
Diffstat (limited to 'synapse/appservice/api.py')
-rw-r--r--synapse/appservice/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index c526c28b93..e8f0793795 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -14,7 +14,7 @@
 # limitations under the License.
 import logging
 import urllib
-from typing import TYPE_CHECKING, Optional
+from typing import TYPE_CHECKING, Optional, Tuple
 
 from prometheus_client import Counter
 
@@ -93,7 +93,7 @@ class ApplicationServiceApi(SimpleHttpClient):
 
         self.protocol_meta_cache = ResponseCache(
             hs, "as_protocol_meta", timeout_ms=HOUR_IN_MS
-        )
+        )  # type: ResponseCache[Tuple[str, str]]
 
     async def query_user(self, service, user_id):
         if service.url is None: