mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +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:
|
||||
try:
|
||||
existing_user_profile = get_user(email, realm)
|
||||
existing_user_profile = get_user(email, realm) # type: Optional[UserProfile]
|
||||
except UserProfile.DoesNotExist:
|
||||
existing_user_profile = None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user