summary refs log tree commit diff
path: root/synapse/module_api/__init__.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-10-11 20:08:11 -0400
committerGitHub <noreply@github.com>2023-10-11 20:08:11 -0400
commitcc865fffc0e556005a6ab596717a77230ba82ee7 (patch)
tree9ca606b24dd07b73edbb89bc1803e98034c812f2 /synapse/module_api/__init__.py
parentConvert simple_select_many_batch, simple_select_many_txn to tuples. (#16444) (diff)
downloadsynapse-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/module_api/__init__.py')
-rw-r--r--synapse/module_api/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py
index 65e2aca456..0786d20635 100644
--- a/synapse/module_api/__init__.py
+++ b/synapse/module_api/__init__.py
@@ -678,7 +678,7 @@ class ModuleApi:
             "msisdn" for phone numbers, and an "address" key which value is the
             threepid's address.
         """
-        return await self._store.user_get_threepids(user_id)
+        return [attr.asdict(t) for t in await self._store.user_get_threepids(user_id)]
 
     def check_user_exists(self, user_id: str) -> "defer.Deferred[Optional[str]]":
         """Check if user exists.