typing: Correct the signautre of prepare_activation_url.

`request.session` is `django.contrib.sessions.backends.base.SessionBase`
`instead of django.contrib.sessions.models.Session`.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-06-20 18:01:15 -04:00 committed by Tim Abbott
parent 2ddea50745
commit 8ba8177dc5
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ from urllib.parse import urlencode
from django.conf import settings
from django.contrib.auth import authenticate, get_backends
from django.contrib.sessions.models import Session
from django.contrib.sessions.backends.base import SessionBase
from django.core import validators
from django.core.exceptions import ValidationError
from django.db.models import Q
@ -540,7 +540,7 @@ def login_and_go_to_home(request: HttpRequest, user_profile: UserProfile) -> Htt
def prepare_activation_url(
email: str,
session: Session,
session: SessionBase,
*,
realm: Optional[Realm],
realm_creation: bool = False,