Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

auth: Add type annotation for contexts.

Zixuan James Lia3ec42007466
diff --git a/zerver/views/auth.py b/zerver/views/auth.py
index f0b3dc85bb8..43deadd477f 100644
--- a/zerver/views/auth.py
+++ b/zerver/views/auth.py
@@ -1049,7 +1049,7 @@ def saml_sp_metadata(request: HttpRequest) -> HttpResponse: # nocoverage
def config_error(request: HttpRequest, error_category_name: str) -> HttpResponse:
- contexts = {
+ contexts: Dict[str, Dict[str, object]] = {
"apple": {"social_backend_name": "apple", "has_markdown_file": True},
"google": {"social_backend_name": "google", "has_markdown_file": True},
"github": {"social_backend_name": "github", "has_markdown_file": True},