summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-08-28 17:39:14 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-08-28 17:39:48 +0100
commitb4826d6eb18eeb05c973882efd4c0f5d68359449 (patch)
tree52962bce10cd57602fa19a0bd76b56250aa5aa6b
parentFix `wait_for_stream_position` for multiple waiters. (#8196) (diff)
downloadsynapse-b4826d6eb18eeb05c973882efd4c0f5d68359449.tar.xz
Fix incorrect return signature
Diffstat (limited to '')
-rw-r--r--synapse/storage/databases/main/registration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py
index 000b8ccff4..01f20c03c2 100644
--- a/synapse/storage/databases/main/registration.py
+++ b/synapse/storage/databases/main/registration.py
@@ -99,7 +99,7 @@ class RegistrationWorkerStore(SQLBaseStore):
         )
 
     @cached()
-    async def get_expiration_ts_for_user(self, user_id: str) -> Optional[None]:
+    async def get_expiration_ts_for_user(self, user_id: str) -> Optional[int]:
         """Get the expiration timestamp for the account bearing a given user ID.
 
         Args: