summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2021-11-18 16:06:38 +0000
committerSean Quah <seanq@element.io>2021-11-18 16:06:38 +0000
commite5751a6350a796ff5229a9cf29042fc83b15ca86 (patch)
treefea61c4f9e68204e6f4ecd52543d2b6765ee0af5 /synapse/handlers/auth.py
parentFix bug/redundant code to do with handling of the root space id (diff)
downloadsynapse-e5751a6350a796ff5229a9cf29042fc83b15ca86.tar.xz
Revert "Convert strings in `synapse.api.constants` to enums or `Final`"
This reverts commit b43d085472390c77691fbbd86b3e66b4a1a0cb6d.
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index ab734134ee..b62e13b725 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -28,7 +28,6 @@ from typing import (
     List,
     Mapping,
     Optional,
-    Set,
     Tuple,
     Type,
     Union,
@@ -383,7 +382,7 @@ class AuthHandler:
     async def _get_available_ui_auth_types(self, user: UserID) -> Iterable[str]:
         """Get a list of the authentication types this user can use"""
 
-        ui_auth_types: Set[str] = set()
+        ui_auth_types = set()
 
         # if the HS supports password auth, and the user has a non-null password, we
         # support password auth
@@ -736,7 +735,7 @@ class AuthHandler:
         for f in flows:
             public_flows.append(f)
 
-        get_params: Dict[str, Any] = {
+        get_params = {
             LoginType.RECAPTCHA: self._get_params_recaptcha,
             LoginType.TERMS: self._get_params_terms,
         }