mirror of https://github.com/zulip/zulip.git
mypy: Annotate existing_user_profile in accounts_register().
This commit is contained in:
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:
|
||||
|
|
Loading…
Reference in New Issue