Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b4826d6

Browse files
committed
Fix incorrect return signature
1 parent 3b4556c commit b4826d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/storage/databases/main/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def get_user_by_access_token(self, token: str) -> Optional[dict]:
9999
)
100100

101101
@cached()
102-
async def get_expiration_ts_for_user(self, user_id: str) -> Optional[None]:
102+
async def get_expiration_ts_for_user(self, user_id: str) -> Optional[int]:
103103
"""Get the expiration timestamp for the account bearing a given user ID.
104104
105105
Args:

0 commit comments

Comments
 (0)