diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-10-18 15:01:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 15:01:10 -0400 |
commit | 3ab55d43bd66b377c1ed94a40931eba98dd07b01 (patch) | |
tree | 44ebe940127f32bde6e497211f5baf7647442117 /synapse/handlers | |
parent | Check auth on received events' auth_events (#11001) (diff) | |
download | synapse-3ab55d43bd66b377c1ed94a40931eba98dd07b01.tar.xz |
Add missing type hints to synapse.api. (#11109)
* Convert UserPresenceState to attrs. * Remove args/kwargs from error classes and explicitly pass msg/errorcode.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/presence.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 404afb9402..b5968e047b 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -1489,7 +1489,7 @@ def format_user_presence_state( The "user_id" is optional so that this function can be used to format presence updates for client /sync responses and for federation /send requests. """ - content = {"presence": state.state} + content: JsonDict = {"presence": state.state} if include_user_id: content["user_id"] = state.user_id if state.last_active_ts: |