Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Resolve type issue that arose from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Sep 2, 2021
1 parent 029bf34 commit 9444ca1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/rest/client/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,10 @@ async def _create_registration_details(
Returns:
dictionary for response from /register
"""
result = {"user_id": user_id, "home_server": self.hs.hostname}
result: Dict[str, Union[str, int]] = {
"user_id": user_id,
"home_server": self.hs.hostname,
}
if not params.get("inhibit_login", False):
device_id = params.get("device_id")
initial_display_name = params.get("initial_device_display_name")
Expand Down

0 comments on commit 9444ca1

Please sign in to comment.