Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
legacy_urls: Add type annotation to legacy_urls.
Zixuan James Li929311642b37
diff --git a/zproject/legacy_urls.py b/zproject/legacy_urls.pyindex 8b5c0e1878e..ad178bb52d6 100644--- a/zproject/legacy_urls.py+++ b/zproject/legacy_urls.py@@ -1,4 +1,6 @@-from django.urls import path+from typing import List, Union++from django.urls import URLPattern, URLResolver, pathimport zerver.viewsimport zerver.views.auth@@ -8,7 +10,7 @@ import zerver.views.tutorial# Future endpoints should add to urls.py, which includes these legacy URLs-legacy_urls = [+legacy_urls: List[Union[URLPattern, URLResolver]] = [# These are json format views used by the web client. They require a logged in browser.# We should remove this endpoint and all code related to it.# It returns a 404 if the stream doesn't exist, which is confusing