summary refs log tree commit diff
path: root/synapse/storage/databases/main
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-10-09 07:20:51 -0400
committerGitHub <noreply@github.com>2020-10-09 07:20:51 -0400
commita93f3121f8fd1c2b77e003d8e43ce881635bb098 (patch)
tree2abb73eb4b3fe2334ab5b2c162c1224189740959 /synapse/storage/databases/main
parentInvalidate the cache when an olm fallback key is uploaded (#8501) (diff)
downloadsynapse-a93f3121f8fd1c2b77e003d8e43ce881635bb098.tar.xz
Add type hints to some handlers (#8505)
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r--synapse/storage/databases/main/registration.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py
index a85867936f..7fd7b0b952 100644
--- a/synapse/storage/databases/main/registration.py
+++ b/synapse/storage/databases/main/registration.py
@@ -1220,7 +1220,9 @@ class RegistrationStore(RegistrationBackgroundUpdateStore):
             desc="record_user_external_id",
         )
 
-    async def user_set_password_hash(self, user_id: str, password_hash: str) -> None:
+    async def user_set_password_hash(
+        self, user_id: str, password_hash: Optional[str]
+    ) -> None:
         """
         NB. This does *not* evict any cache because the one use for this
             removes most of the entries subsequently anyway so it would be