diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-10-09 07:20:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 07:20:51 -0400 |
commit | a93f3121f8fd1c2b77e003d8e43ce881635bb098 (patch) | |
tree | 2abb73eb4b3fe2334ab5b2c162c1224189740959 /synapse/storage | |
parent | Invalidate the cache when an olm fallback key is uploaded (#8501) (diff) | |
download | synapse-a93f3121f8fd1c2b77e003d8e43ce881635bb098.tar.xz |
Add type hints to some handlers (#8505)
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/databases/main/registration.py | 4 |
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 |