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.

decorator: Remove unused Union.

Zixuan James Lie11013fc0075
diff --git a/zerver/decorator.py b/zerver/decorator.py
index 68ee71c2bf8..95c231840c0 100644
--- a/zerver/decorator.py
+++ b/zerver/decorator.py
@@ -542,7 +542,7 @@ def web_public_view(
view_func: ViewFuncT,
redirect_field_name: str = REDIRECT_FIELD_NAME,
login_url: str = settings.HOME_NOT_LOGGED_IN,
-) -> Union[Callable[[ViewFuncT], ViewFuncT], ViewFuncT]:
+) -> ViewFuncT:
"""
This wrapper adds client info for unauthenticated users but
forces authenticated users to go through 2fa.