diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2021-10-12 13:50:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 13:50:34 +0100 |
commit | 36224e056a0ba91b4541607c5ad5cd5152d0e672 (patch) | |
tree | 6af593892cdf674eebb7ad15a09461ab76b9fcea /synapse/module_api | |
parent | Merge tag 'v1.45.0rc1' into develop (diff) | |
download | synapse-36224e056a0ba91b4541607c5ad5cd5152d0e672.tar.xz |
Add type hints to `synapse.storage.databases.main.client_ips` (#10972)
Diffstat (limited to 'synapse/module_api')
-rw-r--r-- | synapse/module_api/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index 8ae21bc43c..b2a228c231 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -773,9 +773,9 @@ class ModuleApi: # Sanitize some of the data. We don't want to return tokens. return [ UserIpAndAgent( - ip=str(data["ip"]), - user_agent=str(data["user_agent"]), - last_seen=int(data["last_seen"]), + ip=data["ip"], + user_agent=data["user_agent"], + last_seen=data["last_seen"], ) for data in raw_data ] |