confirmation: Use the correct type hints for create_confirmation_link.

Previously we annotate the first argument as `ContentType`, which
is wrong as suggested by django-stubs.
This commit is contained in:
PIG208
2021-07-25 01:40:01 +08:00
committed by Tim Abbott
parent beadb5ec7f
commit cf8687662f
2 changed files with 16 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ def create_preregistration_user(
password_required: bool = True,
full_name: Optional[str] = None,
full_name_validated: bool = False,
) -> HttpResponse:
) -> PreregistrationUser:
realm = None
if not realm_creation:
try: