Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typing: Correct the signautre of prepare_activation_url.
Zixuan James Li8ba8177dc5d5
diff --git a/zerver/views/registration.py b/zerver/views/registration.pyindex 1f3d725913d..6d152c3e663 100644--- a/zerver/views/registration.py+++ b/zerver/views/registration.py@@ -5,7 +5,7 @@ from urllib.parse import urlencodefrom django.conf import settingsfrom django.contrib.auth import authenticate, get_backends-from django.contrib.sessions.models import Session+from django.contrib.sessions.backends.base import SessionBasefrom django.core import validatorsfrom django.core.exceptions import ValidationErrorfrom django.db.models import Q@@ -540,7 +540,7 @@ def login_and_go_to_home(request: HttpRequest, user_profile: UserProfile) -> Httdef prepare_activation_url(email: str,- session: Session,+ session: SessionBase,*,realm: Optional[Realm],realm_creation: bool = False,