mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
mypy: Annotate existing_user_profile in accounts_register().
This commit is contained in:
committed by
Greg Price
parent
3cb12230b2
commit
b8f81801c1
@@ -190,7 +190,7 @@ def accounts_register(request: HttpRequest) -> HttpResponse:
|
|||||||
|
|
||||||
if not realm_creation:
|
if not realm_creation:
|
||||||
try:
|
try:
|
||||||
existing_user_profile = get_user(email, realm)
|
existing_user_profile = get_user(email, realm) # type: Optional[UserProfile]
|
||||||
except UserProfile.DoesNotExist:
|
except UserProfile.DoesNotExist:
|
||||||
existing_user_profile = None
|
existing_user_profile = None
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user