diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-10-11 20:08:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 20:08:11 -0400 |
commit | cc865fffc0e556005a6ab596717a77230ba82ee7 (patch) | |
tree | 9ca606b24dd07b73edbb89bc1803e98034c812f2 /synapse/handlers/account_validity.py | |
parent | Convert simple_select_many_batch, simple_select_many_txn to tuples. (#16444) (diff) | |
download | synapse-cc865fffc0e556005a6ab596717a77230ba82ee7.tar.xz |
Convert user_get_threepids response to attrs. (#16468)
This improves type annotations by not having a dictionary of Any values.
Diffstat (limited to 'synapse/handlers/account_validity.py')
-rw-r--r-- | synapse/handlers/account_validity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/account_validity.py b/synapse/handlers/account_validity.py index f1a7a05df6..6c2a49a3b9 100644 --- a/synapse/handlers/account_validity.py +++ b/synapse/handlers/account_validity.py @@ -212,8 +212,8 @@ class AccountValidityHandler: addresses = [] for threepid in threepids: - if threepid["medium"] == "email": - addresses.append(threepid["address"]) + if threepid.medium == "email": + addresses.append(threepid.address) return addresses |