Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mypy: Declare type for OIDC settings dictionaries.
Tim Abbottc576f0c93f26
diff --git a/zproject/backends.py b/zproject/backends.pyindex 70f73cc1eed..49658904943 100644--- a/zproject/backends.py+++ b/zproject/backends.py@@ -2356,7 +2356,9 @@ class GenericOpenIdConnectBackend(SocialAuthMixin, OpenIdConnectAuth):# Hack: We don't yet support multiple IdPs, but we want this# module to import if nothing has been configured yet.- settings_dict = list(settings.SOCIAL_AUTH_OIDC_ENABLED_IDPS.values() or [{}])[0]+ settings_dict: Dict[str, Optional[str]] = list(+ settings.SOCIAL_AUTH_OIDC_ENABLED_IDPS.values() or [{}]+ )[0]display_icon = settings_dict.get("display_icon")display_name = settings_dict.get("display_name", "OIDC")